I am using the following PHP code to retrieve the "Location" field from the database in my server, but am getting the error shown below when I run the PHP.
My PHP file:
<?php
$con=mysqli_connect("localhost","naveen","naveen123","naveen_z");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($con,"SELECT 'Location' FROM `map_details` ");
print_r($result);
mysqli_close($con);
?>
My database structure:

I am getting the following error:
Parse error: syntax error, unexpected $end in location.php on line 12
Now, I'm receiving this:
{"current_field":null,"field_count":null,"lengths":null,"num_rows":null,"type":null} –
`consistently (or, better, only quote when required).'should not be used for identifiers because it's actually an ANSI SQL string quote :("num_rows":null) so the map_details table is most likely empty. Anyway, that's a different (and unrelated) problem - post a new question as appropriate (but first validate or disprove my previous assertion).