title: MySQL - Get a value from column through ID in PHP
body: <p>I have a database with the following structure:</p>
  
  <pre><code>id  msg
  1  'Hello'
  2  'Bye'
  </code></pre>
  
  <p>and I need to get "msg" value for the "id". </p>
  
  <p>This is my try:</p>
  
  <pre><code>$text = mysql_query("SELECT msg FROM text WHERE text (id) ='$msg_num'");
  </code></pre>
  
  <p>But it doesn't work :(
  Do you have suggestions?
  Thanks</p>