Re: [PHP] warning 1 is not mysql result index

2001-01-25 Thread Christopher Allen
> still did not work. Keep returning the same error when I do this: > $HotelName = mysql_fetch_row($resultHotel,1) or die(mysql_error()); what was your connection statement and query to the db? I would look to these ass the culprit heres an example : mysql_connect("localhost", "$username",

Re: [PHP] warning 1 is not mysql result index

2001-01-24 Thread [EMAIL PROTECTED]
Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Christopher Allen <[EMAIL PROTECTED]> To: Jacky@lilst <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 25, 2001 12:39 AM Su

Re: [PHP] warning 1 is not mysql result index

2001-01-24 Thread Christopher Allen
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 per

[PHP] warning 1 is not mysql result index

2001-01-24 Thread [EMAIL PROTECTED]
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 t