Try this:

<?php
if ($result == 0)
  echo "<b>Error " . mysql_errno() . ": " . mysql_error() . "</b>";
elseif (mysql_num_rows($result) == 0)
  echo "<b>Query executed successfully!</b>";
?>


Best regards,
Joseph H.
http://BlueChillies.com
Your Freeware and Shareware Download Destination


>Another strange error, parsing:
>
><?php
>if ($result == 0);
>echo ("<b>Error " . mysql_errno() . ": " . mysql_error() . "</b>");
>elseif (mysql_num_rows($result) == 0);
>echo("<b>Query executed successfully!</b>");
>else:
>?>
>
>on the 'elseif' statement.
>
>suggestions? is there a parse checker, that identifies errors?
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to