The mysqli_fetch_object() function returns the current row of a result set, as an object.
mysqli_fetch_object(result,classname,params);
Lastname,$obj->Age); } // Free result set mysqli_free_result($result); } mysqli_close($con); ?>