I have a complex query that runs as follows:
if ($stmt = $dbi->prepare($pt_query)) { $stmt->bind_param('ssssssssi', $snome,$scognome,$ssocieta,$svia,$slocalita,$sprovincia,$scap,$stelefono,$sfax,$uid); $stmt->execute(); echo $dbi->error; $stmt->close(); } else { printf("Error -> %s\n", $dbi->error); }
This thing fails without any error, it just does not update the database. Since there is a ton of data that is processed before this thing, I would like to know if there is a way to show the actual query that mysqli executes in order to understand where the problem is.
Thanks.
php mysqli
0plus1
source share