warning 1 is not mysql result index
| From: | Jacky@lilst | Date: | Thu, 25 Jan 2001 19:34:59 +0000 |
| Subject: | warning 1 is not mysql result index | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-36570@lists.php.net to get a copy of this message | ||
I want to get the result from first row (the one next from ID field) of the table using
$HotelName = mysql_result($resultHotel,0,1) or die(mysql_error());
// Note that there is data in the table for sure
and I got the error back said
Warning : 1 is not a Mysql result Index ...... ( and point to that aprticular line of course ).
What is wrong here?
Jack
jacky@activelifestyle.com
"There is nothing more rewarding than reaching the goal you set for yourself"