Lines Matching refs:stmt
14 if (!$stmt = mysqli_stmt_init($link))
18 mysqli_stmt_sqlstate($stmt);
23 if (!mysqli_stmt_prepare($stmt, "SELECT id FROM test"))
24 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
26 if ('00000' !== ($tmp = mysqli_stmt_sqlstate($stmt)))
28 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
30 if (mysqli_stmt_prepare($stmt, "SELECT believe_me FROM i_dont_belive_that_this_table_exists"))
31 printf("[008] Should fail! [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
33 if ('' === ($tmp = mysqli_stmt_sqlstate($stmt)))
34 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
36 mysqli_stmt_close($stmt);
39 mysqli_stmt_sqlstate($stmt);