On Tuesday 17 June 2003 14:16, Martin E. Koss wrote:
> Error found when testing the code below:
> Warning: Variable passed to each() is not an array or object in
> apache/htdocs/speeddials.php on line 11
> Line 11 is: "while ($record_set_array = each($result_set)) {"

> > $result_set = mysql_query($qry) or die(mysql_error());

Because $result_set is a resource id. Refer to the examples in the manual on 
how to get results from a db.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
------------------------------------------
/*
Good day for overcoming obstacles.  Try a steeplechase.
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to