search

Home  >  Q&A  >  body text

Data transfer part

I don’t quite understand which part of the code is used to transfer the data entered by the user to the database

Liu_Liu_2581 days ago1167

reply all(1)I'll reply

  • dabour

    dabour2017-12-18 08:36:53

    $insert_sql="insert into user(username,password)values(? , ? )";

    $stmt=mysqli_prepare($link,$insert_sql);

    mysqli_stmt_bind_param($stmt,'ss',$name,$pwd);

    $result_insert=mysqli_stmt_execute($stmt);


    reply
    0
  • Cancelreply