Gamingforce Interactive Forums
85240 35212

Go Back   Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk

Notices

Welcome to the Exploding Garrmondo Weiner Interactive Swiss Army Penis.
GFF is a community of gaming and music enthusiasts. We have a team of dedicated moderators, constant member-organized activities, and plenty of custom features, including our unique journal system. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Membership is completely free (and gets rid of the pesky advertisement unit underneath this message).


Need help with scripting language
Reply
 
Thread Tools
Winter Storm
Distant Memories


Member 2209

Level 27.54

Mar 2006


Reply With Quote
Old Oct 18, 2007, 02:57 PM #1 of 5
Need help with scripting language

I dont know which of three sections were appropriate to place this in.

I have an avatar gallery that is now getting too big and I want to break it up into pages.

I dont wont to use tables(HTML), and I used PHP but thats just..well tables. Basically I want a format like this: DayDream Graphics: Web Design & Programming Community

but without download/member tabs.

What language I need to use to pull that off?

this is my PHP code

Code:
<?php
$a = '0';
$filepath = "images/avatars/80";
$dir = dir($filepath);


echo "<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" width=\"35%\">";
while($entry=$dir->read()) {
    if($entry == "." || $entry == "..") {
        continue;
    }
    $fp = @fopen("$filepath/$entry","r");

if ($a == '0') {echo "<tr>";}
if ($a == '09') {echo "<tr>";}
if ($a == '18') {echo "<tr>";}
if ($a == '27') {echo "<tr>";}
if ($a == '36') {echo "<tr>";}
if ($a == '45') {echo "<tr>";}
if ($a == '54') {echo "<tr>";}
?><td>
  <img src="<? echo "$filepath/$entry" ?>" alt="<? echo $entry ?>"></a>
  </td>
<?
$a = $a + 1;
}

?>
I do have a MySQL database..

Jam it back in, in the dark.
Grawl
WHAT IF I HAD DIED?!


Member 39

Level 34.06

Mar 2006


Reply With Quote
Old Oct 18, 2007, 03:04 PM Local time: Oct 18, 2007, 10:04 PM #2 of 5
I don´t know jack about PHP, but wouldn´t it be easier to write a while-loop for creating those <tr>-tags?

Code:
while ( $counter <= 60 ) {
echt "<tr>";
$counter + 9;
}
Or sumting.

There's nowhere I can't reach.
Winter Storm
Distant Memories


Member 2209

Level 27.54

Mar 2006


Reply With Quote
Old Oct 18, 2007, 04:15 PM #3 of 5
That locked up the page..or maybe I placed it in wrong. I need to relearn all my stuff(HTML/CSS/PHP/MySQL) all over again.

I'm in hell.

This thing is sticky, and I don't like it. I don't appreciate it.
LiquidAcid
Chocorific


Member 6745

Level 38.97

May 2006


Reply With Quote
Old Oct 18, 2007, 05:19 PM Local time: Oct 18, 2007, 11:19 PM #4 of 5
Is your only question about PHP being able to handle such a task? Then the answer is yes, PHP is server-side scripting and should be able to generate ANY documents for the client.

Or what kind of answers do you seek? When you want to code everything yourself, then good luck!

I am a dolphin, do you want me on your body?
Winter Storm
Distant Memories


Member 2209

Level 27.54

Mar 2006


Reply With Quote
Old Oct 18, 2007, 10:35 PM #5 of 5
It's all good. I can use PHP to "talk to" MySQL and create an avatar database..so that I can upload my avatars, and when a certain amount of rows per page is reached, it'll go into a new page. Instead of people looking at one big ass page of avatars.

I just wanted to know what I had to learn and apparently it's how to use MySQL.

I was speaking idiomatically.
Reply

Thread Tools

Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk > Need help with scripting language

Forum Jump


All times are GMT -5. The time now is 08:35 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2025, vBulletin Solutions, Inc.