Any ideas why I am getting this error:
Catchable fatal error: Object of class mysqli_result could not be converted to string in ....
Code: Select all
$sql = "SELECT id FROM activity ORDER BY id DESC LIMIT 1";
$lastresult = mysqli_query($dbc, $sql) or die ("Could not perform query");
echo $lastresult;Cheers.