Only 1 Query Result...help.

From: Date: Sun, 14 Oct 2001 20:58:54 +0000
Subject: Only 1 Query Result...help.
Groups: php.general 
Request: Send a blank email to php-general+get-71046@lists.php.net to get a copy of this message
hey- I'm trying to put together a photo album system with next/previous buttons that displays one picture at a time, and obviously the user has to click through the buttons to navigate the pictures. I'm using this line for the query $picquery = "SELECT picid,path,width,height FROM pics WHERE id = $id"; normally to display results I'd use the mysql_fetch_array function and print it out like: $picdata[src]; what i was wondering if there's another function that I can use that'll stick the results into an array or some other organized data structure so I can display them, but without using a loop to display just one result thanks chris

« previous php.general (#71046) next »