Stored procedure causes “Commands out of sync” on the next query

前端 未结 5 1568
不知归路
不知归路 2020-12-16 04:58

I am running a query with a mysql stored procedure :

$AddProf_qr = mysql_query(\"call AddStudent(\'$d_Pass\', \'$d_Titl\', \'$d_Firs\', \'$d_Midd\',  \'$d_La         


        
5条回答
  •  盖世英雄少女心
    2020-12-16 05:41

    Check out here: http://us3.php.net/manual/en/function.mysql-query.php In comments, one guy claims that he made it work by setting connection flag to MYSQL_MULTI_RESULTS (131072).

    But it would be much better to use mysqli...

提交回复
热议问题