PHP - MySQL gets value of out parameter from a stored procedure

前端 未结 5 2030
自闭症患者
自闭症患者 2021-01-06 13:20

I have called a MySQL stored procedure from PHP using mysqli. This has one out parameter.

$rs = $mysqli->query(\"CALL addNewUser($name,$age,@         


        
5条回答
  •  广开言路
    2021-01-06 14:16

    Just $row->{"@id"} would work here. You can't use an stdClass as an array ($row[0]...).

提交回复
热议问题