This is how I bind my parameters:
$Con = mysqli_connect(...); $Statement = mysqli_stmt_init($Con); mysqli_stmt_prepare($Statement,"select * from users where name=? and email=?"); mysqli_stmt_bind_param("s",$Username); mysqli_stmt_bind_param("s",$Email); <-- it fails here
But it works fine in another case, when I replace 2 calls of mysqli_stmt_bind_param with:
mysql_stmt_bind_param("ss",$Username,$Email)
The problem is that I have an array of parameters; I have to knit them one by one. I do not know the number of parameters
source share