php bind_param is not working
问题 i'm having weird results from php $stmt->bind_param, here is what happens... if i do this $status="something"; $var=5; $consulta="UPDATE carrito SET status='$status' WHERE id_carrito='$var'"; and prepare and execute it works... but as soon as i do this: $consulta="UPDATE carrito SET status=? WHERE id_carrito=?"; if($stmt=$mysqli->prepare($consulta)) { $stmt->bind_param("si",$status,$var); . . . it stops working, vars, are ok i print them after the execute and they have the correct value