Re: Resource Id #2
| From: | Dan Brunner | Date: | Wed, 23 Jan 2002 18:21:04 +0000 |
| Subject: | Re: Resource Id #2 | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16104@lists.php.net to get a copy of this message | ||
Use something like this...
...
...
...
$rows = mysql_num_rows($result);
for ($y = 0; $y < $rows; $y++){
$data = mysql_fetch_object($result);
echo $data->Field_Name;
...
...
...
}
A Little more code would Help!!!
On Wednesday, January 23, 2002, at 10:56 AM, joshwhar@cc.usu.edu wrote:
I'm having a problem with retrieving data from MySQL databases. I can input with no problems, but when I try to pull the data back out (single field) and echo it I get something showing up saying Resource Id #2. Any ideas? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net