Re: Help with understanding an error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24 Nov 2008, at 17:28, Terion Miller wrote:
Can anyone help explain what I need to do to fix this:

Error: *Warning*: mysql_fetch_object(): supplied argument is not a valid
MySQL result resource in *
C:\Inetpub\wwwroot\WorkOrderSystem\ViewWorkOrder.php* on line *57*

*Warning*: mysql_num_rows(): supplied argument is not a valid MySQL result resource in *C:\Inetpub\wwwroot\WorkOrderSystem\ViewWorkOrder.php* on line *
65


Code:
line 57: $row = mysql_fetch_object ($result);
line 65: if (mysql_num_rows($result) == 0) {
?>
*

This means exactly what it says... $result is not a valid MySQL result resource. This is usually caused by an error in the SQL query. Check that.

-Stut

--
http://stut.net/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux