
September 10th, 2005, 01:42 PM
|
 |
I see semi-colons
|
|
Join Date: Jun 2005
Location: Portland, OR
|
|
|
Decks, Cards, and my gray hair
I have a problem w/ my code.  I'm using PHP to create dynamic WML pages. Simple enough, done it bunches. I think the problem to be in my implementation of the WML.
PHP Code:
echo( "<td><a href=\"#picdisplay?pic=$file[$q]\"><img src=\"pics/thumb/$file[$q]\" alt='thumb$a'/></a></td>\n");
I use a loop to run through this 9 times per page to create a thumbnail gallery with each time through $q gets 1 added to it.
I'm trying to pass the value of $file[$q] to another card in the same deck. If I do it the above way, when I click a link nothing happens.
If I do this:
PHP Code:
echo( "<td><a href=\"#picdisplay\"><img src=\"pics/thumb/$file[$q]\" alt='thumb$a'/></a></td>\n");
Then it will follow the link to the other card, but of course no value is there for it to display an image w/. Notice the missing ?pic=$file[$q]
Other than creating 9 instances of the same card but with different titles, is there a way to do this?
|