title: How to change those MySQL codes to PDO ? and how to escape a string with pdo codes?
body: <pre><code>$sql = "INSERT INTO users(user_name, user_pass, user_email, user_date, user_level)
                  VALUES('" . mysql_real_escape_string($_POST['user_name']) . "'
                      , '" . sha1($_POST['user_pass']) . "'
                      , '" . mysql_real_escape_string($_POST['user_email']) . "'
                      , now(), 0)";
              $result = mysql_query($sql);
  </code></pre>