search

Home  >  Q&A  >  body text

Is this the code for conn.php?

下面

<?php     $name = $_POST['username'];    $pwd  = md5($_POST['password']);    $sql = "select * from user where username='$name'";    $info = mysql_query($sql);    $res = mysql_num_rows($info);    ?>

P粉493611175P粉493611175538 days ago485

reply all(1)I'll reply

  • PHP中文网用户-8603393

    PHP中文网用户-86033932023-06-21 10:15:26

    No way to link data? Just bring it with you. And the submitted post is not filtered, can it be queried directly? Doing so runs the risk of being attacked

    reply
    0
  • Cancelreply