title: i need feedback on my PDO login function, will there be errors? and how is the structure?
body: <p>im new to PDO so im trying to figure stuff out</p>
  <p>im making a login system</p>
  <pre><code>function validateLogin($db,$phone,$password)
  {
      $stmt = $db-&gt;prepare(&quot;SELECT $password FROM reg WHERE phone = :phone &quot;);
      $stmt-&gt;bindParam(':phone',$phone);
      $stmt-&gt;execute();
      $row = $stmt-&gt;fetch();
      if($row) {     
          if( password_verify($password,$row)==false)
          {
             //password error message
          }   
          else 
             //redirect to another page or whatever
          }
          else
            //phone number not registered error message
  </code></pre>
  <p>how is this looking? thank you.</p>