I can't for the live of me figure out how to get the result of a simple UUID() query into a variable/echo it/whatever.
$query = "SELECT UUID()";
if ($result = $mysqli->query($query)){
$appuserid = var_dump($result);
}
vardump
of result:
object(mysqli_result)#2 (5) {
["current_field"]=> int(0)
["field_count"]=> int(1)
["lengths"]=> NULL
["num_rows"]=> int(1)
["type"]=> int(0)
}
Help would be hugely appreciated!