Hello,
I'm a complete n00b to PHP (and programming for that matter), and am having trouble passing multiple variables from one PHP sccript to another via a URL. I've read about sessions, and frankly, they confuse the heck out of me and seem way too advanced.
Here's what I'm trying to do:
echo "<tr bgcolor=$color><td>$id:</td><td>$question</td><td>[ <a href='editquiz.php?id=$id?table=$table'>edit</a>]
after clicking the edit link, I get an invalid fetch from the following code because it appears the table value isn't being passed properly.
$result = mysql_query("SELECT * FROM $table WHERE id=$id",$db);
If I do the following:
echo "ID is: " . $id . " and Table is " . $table . ".";
I get the following
ID is: 6?table=quiz and Table is .
If I change the original URL to read: editquiz.php?table=$table?id=$id
then it opens up the table properly, but does not open up the correct id.
Any idea how to pass two variables via a URL and have them both accessible?
Thanks,
TIm