title: Trying to execute a SELECT statement in MYSQL but it is not working
body: <p>I believe I have the syntax correct, at least according to my textbook. This is just a piece of the file as the other info is irrelevant to my problem. The table name is user, as well as the column name is user. I don't believe this to be the problem, as other sql statements work. Though it isn't the smartest thing to do I know :) Anyone see an error?</p>
  
  <pre><code>try {
  $db=new PDO("mysql:host=$db_host;dbname=$db_name",
          $db_user,$db_pass);
  } catch (PDOException $e) {
  exit("Error connecting to database: " . $e-&gt;getMessage());
  }
  $user=$_SESSION["user"];
  
  $pickselect = "SELECT game1 FROM user WHERE user='$user' ";
  $pickedyet = $db-&gt;prepare($pickselect);
  $pickedyet-&gt;execute();
  echo $pickselect;
  
  if ($pickedyet == "0")
  { 
  echo '&lt;form method="post" action="makepicks.php"&gt;
  &lt;h2&gt;Game 1&lt;/h2&gt;......'
  </code></pre>