title: errorTable 'college.college' doesn't exist : query error
body: <pre><code>&lt;?php
      ini_set('display_errors',1); 
      error_reporting(E_ALL);
      include 'conn.php';
      // Attempt select query execution
      $db_select = mysqli_select_db($conn,'college'); 
  
      if (!$db_select) { 
          die("Database selection failed:: " . mysql_error($conn)); 
      }else{
  
      }  //You don't need a ; like you do in SQL
      $result = mysqli_query($conn,"SELECT * FROM college") or die("error".mysqli_error($conn));
  
      echo "&lt;table&gt;"; // start a table tag in the HTML
      $result = array();
      while($row = mysqli_fetch_array($result)){   //Creates a loop to loop through results
          echo "&lt;tr&gt;&lt;td&gt;" . $row['city'] . "&lt;/td&gt;&lt;td&gt;" . $row['clients'] . "&lt;/td&gt;&lt;/tr&gt;";  //$row['index'] the index here is a field name
      }
      echo "&lt;/table&gt;"; //Close the table in HTML
  
      mysqli_close($conn);
  ?&gt;
  </code></pre>
  
  <p>I am getting error in query statemenet that table college does exist. I have created table college in phpmyadmin and populated it with fake values, but still I am getting query error. The error is in line 14.</p>