title: Unable to retrieve value from MySQL database
body: <p>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.</p>
  
  <p>My PHP file:</p>
  
  <pre><code>&lt;?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);
  ?&gt;
  </code></pre>
  
  <p>My database structure:</p>
  
  <p><img src="https://i.stack.imgur.com/LRUIZ.png" alt="Database structure"></p>
  
  <p>I am getting the following error:</p>
  
  <pre><code>Parse error: syntax error, unexpected $end in location.php on line 12
  </code></pre>
  
  <p>Now, I'm receiving this:</p>
  
  <pre><code>{"current_field":null,"field_count":null,"lengths":null,"num_rows":null,"type":n‌​ull} – 
  </code></pre>