title: php mysql query string
body: <p>I need help to query string from database please help.</p>
  
  <pre><code>&lt;?php
  $phone="8165526693@vtext.com";
  
  
  $link = mysql_connect('localhost', 'root', 'toor');
  if (!$link) {
      die('Could not connect: ' . mysql_error());
  }
  if (!mysql_select_db('wizarddb')) {
      die('Could not select database: ' . mysql_error());
  }
  $result = mysql_query("SELECT * FROM Phone WHERE phone LIKE '%$phone%'"); 
  
  if (!$result) {
      die('Could not query:' . mysql_error());
  }
  echo mysql_result($result(1); // outputs phone
  
  mysql_close($link);
  ?&gt;
  </code></pre>
  
  <p>I have issues with echo or is the query wrong?</p>