mysqli - mysqli_stmt_bind_param returns no feedback -
i trying catch error unsuccessful bind statement result in, why deliberately not passing in types mysqli_stmt_bind_param() function. please see code snippet below
$email = 'test@test.com'; $password = 'password'; if (!(mysqli_stmt_bind_param($stmt , '' , $email, $password))) {     echo "binding parameters failed: (" . mysqli_stmt_errno($stmt) . ") " . mysqli_stmt_error($stmt) . "<br>"; }   however, mysqli_stmt_errno returns 0 , mysqli_stmt_error() returns empty string. 
php gives warning saying warning: mysqli_stmt_bind_param(): invalid type or no types specified in c:\wamp\www\test\database1.php on line 28 why not feedback database?
because binding has nothing database.
Comments
Post a Comment