Echo your SELECT statement to make certain it reads the way it should.
Test for number of rows returned, or an error - $result probably contains nothing, that is it's not pointing to an array.
Miles
At 01:23 PM 7/7/2003 -0600, Micah Montoy wrote:
Anyone see what is wrong with this?
//get category info $result = mssql_query("SELECT cat_id, cat_name FROM category WHERE cat_id = '$cat_name'"); $catID = mssql_result($result,0,"cat_id"); //line 32 $catName = mssql_result($result,0,"cat_name"); //line 33
I'm getting the error:
Warning: mssql_result(): Bad row offset (0) in c:\inetpub\wwwroot\webpage10\example\u_images\act_load_imgs.php on line 32
Warning: mssql_result(): Bad row offset (0) in c:\inetpub\wwwroot\webpage10\example\u_images\act_load_imgs.php on line 33
thanks
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php