Micah Montoy wrote:
//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

Is your WHERE clause what you want it to be?


WHERE cat_id = '$cat_name'

I don't know what $cat_name is, but since you have a cat_name column, I am wondering if you are comparing two different things.

Brad



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to