Re: Not a valid RESOURCE??..help please!

From: Date: Wed, 17 Oct 2001 00:07:21 +0000
Subject: Re: Not a valid RESOURCE??..help please!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71277@lists.php.net to get a copy of this message
Please read the FAQ. This question gets asked almost daily. http://www.php.net/manual/en/faq.databases.php#AEN63031 -Rasmus On Tue, 16 Oct 2001, Chris Cocuzzo wrote: > include("/home/fplg/db/db_config.php"); > $conn = db_connect("fplg"); > $pic_query = "SELECT picid,path,width,height FROM pics WHERE id = > '".$id."'"; > echo $pic_query; > $pic_result = mysql_query($pic_query,$conn); > echo "pic result complete"; > while($pic_data = mysql_fetch_array($pic_result)) { > ?> > > can someone give me any hint as to what may be wrong with this...it's telling me that the > line inside the while loop condition is not a valid resources(note: i tried this without the loop > with the same problem)...what's wrong?? > > chris >

« previous php.general (#71277) next »