Re: warning 1 is not mysql result index
| From: | Christopher Allen | Date: | Thu, 25 Jan 2001 06:39:02 +0000 |
| Subject: | Re: warning 1 is not mysql result index | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36572@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());
A suggestion:
Why don't you use mysql_fetch_row or any other function that reaches
beyond just getting 1 field?
this would be easier perhaps for you visualize the data you are trying to
get.
http://www.php.net/manual/en/function.mysql-fetch-row.php