Using the php mysql functions, if I have a query that I know will only return one row from the data table I nest the functions like this:
$myVariable = mysql_fetch_assoc(mysql_query("SOME QUERY"));
Using the mysqli functions I have to have to use two lines of code:
$query = $db->query("SOME QUERY");
$myVariable = $query->fetch_assoc();
Is it possible to condense the two lines into one as I do using the older mysql functions?