qry not running??

From: Date: Mon, 07 Jul 2003 19:23:47 +0000
Subject: qry not running??
Groups: php.general 
Request: Send a blank email to php-general+get-154221@lists.php.net to get a copy of this message
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

« previous php.general (#154221) next »