RE: parsing error

From: Date: Sun, 04 Feb 2001 10:26:43 +0000
Subject: RE: parsing error
Groups: php.db 
Request: Send a blank email to php-db+get-6357@lists.php.net to get a copy of this message
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? >

« previous php.db (#6357) next »