Last active
December 17, 2015 01:49
-
-
Save montes/5531508 to your computer and use it in GitHub Desktop.
Revisions
-
montes renamed this gist
Aug 21, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
montes revised this gist
May 7, 2013 . 1 changed file with 6 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,18 +7,19 @@ exit(); } /* $sql = ""; $mysqli->query($sql); */ $sql = "SELECT * FROM users"; $result = $mysqli->query($sql); if ($result) { while ($row = $result->fetch_object()) { echo $user->email . '<br>'; } $result->close(); $mysqli->next_result(); } -
montes revised this gist
May 7, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -12,13 +12,13 @@ /* $result = $mysqli->query("SELECT * FROM users"); if ($result){ while ($row = $result->fetch_object()) { echo $user->email . '<br>'; } $result->close(); $mysqli->next_result(); } */ -
montes created this gist
May 7, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ <?php $mysqli = new mysqli("localhost", "root", "password", "database"); if ($mysqli->connect_errno) { printf("Connect failed: %s\n", $mysqli->connect_error); exit(); } $sql = ""; $mysqli->query($sql); /* $result = $db->query("SELECT * FROM users"); if ($result){ while ($row = $result->fetch_object()) { echo $user->email . '<br>'; } $result->close(); $db->next_result(); } */