Single Value Mysqli [duplicate]

How about

$name = $mysqli->query("SELECT name FROM contacts WHERE id = 5")->fetch_object()->name; 

Leave a Comment