View Single Post
Old 03-11-2009, 02:19 PM   #1 (permalink)
nefus
The Contributor
 
nefus's Avatar
 
Join Date: Nov 2007
Location: Nashville, TN
Posts: 66
Thanks: 20
nefus is on a distinguished road
Default if statement success

I am pretty sure the following is true:

Code:
$result = mysqli_query( $link , $sql );
if(!$result) { do something if fails}
The ! is used in that instance to run the loop if the sql statement failed. Is there a way to check for success in the same way?
nefus is offline  
Reply With Quote