12-17-2003, 06:02 AM
Made this little gallery today (photos taken over a course of time, though). http://photos.hokuten.net/
But I've got a problem that my low-level of genius cannot overcome: I can't seem to jump rows in my MySQL table! [can't do a mysql_query("SELECT * FROM ".$gallery." WHERE upID='$imageID'");]
This is the bastard that's troubling me: (gallery is passed as "scenery" in this case)
Here's a screenshot of the DB in phpMyAdmin (I cut it up in photoshop, but see? It's got all the right rows and values... I think)
But I've got a problem that my low-level of genius cannot overcome: I can't seem to jump rows in my MySQL table! [can't do a mysql_query("SELECT * FROM ".$gallery." WHERE upID='$imageID'");]
This is the bastard that's troubling me: (gallery is passed as "scenery" in this case)
Code:
$selectRow = mysql_query("SELECT * FROM ".$gallery);
$takenOn = mysql_result($selectRow, $imageID, "upDate");
$comment = mysql_result($selectRow, $imageID, "comment");
$altVer = mysql_result($selectRow, $imageID, "altVer");
Here's a screenshot of the DB in phpMyAdmin (I cut it up in photoshop, but see? It's got all the right rows and values... I think)