Lines Matching refs:stmt
24 $stmt = mysqli_stmt_init($link);
25 if (!is_null($tmp = mysqli_stmt_field_count($stmt)))
28 if (mysqli_stmt_prepare($stmt, ''))
30 if (!is_null($tmp = mysqli_stmt_field_count($stmt)))
33 if (!mysqli_stmt_prepare($stmt, 'SELECT 1'))
34 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
35 if (1 !== ($tmp = mysqli_stmt_field_count($stmt)))
38 if (!mysqli_stmt_prepare($stmt, 'SELECT 1, 2'))
39 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
40 if (2 !== ($tmp = mysqli_stmt_field_count($stmt)))
43 if (!mysqli_stmt_prepare($stmt, 'SELECT id, label FROM test'))
44 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
45 if (2 !== ($tmp = mysqli_stmt_field_count($stmt)))
48 if (!mysqli_stmt_prepare($stmt, 'SELECT label FROM test') ||
49 !mysqli_stmt_execute($stmt))
50 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
51 if (1 !== ($tmp = mysqli_stmt_field_count($stmt)))
55 if (mysqli_stmt_bind_param($stmt, "s", $label))
57 while (mysqli_stmt_fetch($stmt))
58 if (1 !== ($tmp = mysqli_stmt_field_count($stmt)))
61 if (!mysqli_stmt_prepare($stmt, 'INSERT INTO test(id) VALUES (100)'))
62 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
63 if (0 !== ($tmp = mysqli_stmt_field_count($stmt)))
66 if (!mysqli_stmt_prepare($stmt, "UPDATE test SET label = 'z' WHERE id = 1") ||
67 !mysqli_stmt_execute($stmt))
68 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
70 if (0 !== ($tmp = mysqli_stmt_field_count($stmt)))
73 mysqli_stmt_close($stmt);
75 if (mysqli_stmt_prepare($stmt, 'SELECT id FROM test'))
77 if (!is_null($tmp = mysqli_stmt_field_count($stmt)))