RE: [PHP-DB] Resource id #5
| From: | Miguel Guirao | Date: | Thu, 27 Mar 2008 17:58:17 +0000 |
| Subject: | RE: [PHP-DB] Resource id #5 | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44837@lists.php.net to get a copy of this message | ||
Been a positive integer, it jeans that the SQL query was succesfully
executed, read the function description.
__________________
Miguel Guirao Aguilera, Linux+, ITIL
Sistemas de Información
Informática R8
Ext. 7540
--> -----Original Message-----
--> From: Richard Dunne [mailto:richarddunne1971@o2.ie]
--> Sent: Thursday, March 27, 2008 11:51 AM
--> To: php-db@lists.php.net
--> Subject: [PHP-DB] Resource id #5
-->
--> Can someone explain how I can translate Resource id #5 which is what I
--> am getting from the code below?
-->
--> $result = mysql_query("Select answer from answers") or
--> die(mysql_error());
--> $resultArray = explode(',',$result);
--> for ($i=0;$i<sizeof($resultArray);$i++)
--> {
--> echo $resultArray[$i];
--> }
-->
-->
-->
--> --
--> PHP Database Mailing List (http://www.php.net/)
--> To unsubscribe, visit: http://www.php.net/unsub.php