mysqli::bind_param(); variables

前端 未结 2 1771
遥遥无期
遥遥无期 2021-01-23 08:33
$mysqli = new mysqli(\'localhost\', \'my_user\', \'my_password\', \'world\');

/* check connection */
if (mysqli_connect_errno()) {
    printf(\"Connect failed: %s\\n\",         


        
2条回答
  •  星月不相逢
    2021-01-23 09:20

    Yes, because mysqli_stmt::bind_param: Binds variables to a prepared statement as parameters and it uses reference to these variables so that whenever you change them the change reflects on them.

提交回复
热议问题