Created
July 25, 2012 20:53
-
-
Save tmbritton/3178616 to your computer and use it in GitHub Desktop.
Execute MySQL Query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if($result = mysqli_query($link, $sql)){ | |
while($row = mysqli_fetch_array($result)) { | |
//Do Stuff | |
} | |
} else { | |
echo mysqli_errno($link) . ": " . mysqli_error($link) . "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment