Forked from bcamarneiro/Single Value from mysqli PHP.php
Created
September 24, 2016 14:00
-
-
Save fherx/cb4782fdc6b35244464290bf1aadc849 to your computer and use it in GitHub Desktop.
Return single value from mysqli PHP
This file contains 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
$name = $mysqli->query("SELECT name FROM contacts WHERE id = 5")->fetch_object()->name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment