I am getting the error:
Object of class mysqli_result could not be converted to string
This is my code:
$result = mys
Before using the $result variable, you should use $row = mysql_fetch_array($result) or mysqli_fetch_assoc() functions.
$result
$row = mysql_fetch_array($result)
mysqli_fetch_assoc()
Like this:
$row = mysql_fetch_array($result);
and use the $row array as you need.
$row