Lines Matching refs:stmt
15 $stmt = mysqli_stmt_init($link);
18 mysqli_stmt_field_count($stmt);
23 if (mysqli_stmt_prepare($stmt, ''))
27 mysqli_stmt_field_count($stmt);
32 if (!mysqli_stmt_prepare($stmt, 'SELECT 1'))
33 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
34 if (1 !== ($tmp = mysqli_stmt_field_count($stmt)))
37 if (!mysqli_stmt_prepare($stmt, 'SELECT 1, 2'))
38 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
39 if (2 !== ($tmp = mysqli_stmt_field_count($stmt)))
42 if (!mysqli_stmt_prepare($stmt, 'SELECT id, label FROM test'))
43 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
44 if (2 !== ($tmp = mysqli_stmt_field_count($stmt)))
47 if (!mysqli_stmt_prepare($stmt, 'SELECT label FROM test') ||
48 !mysqli_stmt_execute($stmt))
49 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
50 if (1 !== ($tmp = mysqli_stmt_field_count($stmt)))
55 if (mysqli_stmt_bind_param($stmt, "s", $label))
60 while (mysqli_stmt_fetch($stmt))
61 if (1 !== ($tmp = mysqli_stmt_field_count($stmt)))
64 if (!mysqli_stmt_prepare($stmt, 'INSERT INTO test(id) VALUES (100)'))
65 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
66 if (0 !== ($tmp = mysqli_stmt_field_count($stmt)))
69 if (!mysqli_stmt_prepare($stmt, "UPDATE test SET label = 'z' WHERE id = 1") ||
70 !mysqli_stmt_execute($stmt))
71 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
73 if (0 !== ($tmp = mysqli_stmt_field_count($stmt)))
76 mysqli_stmt_close($stmt);
79 mysqli_stmt_prepare($stmt, 'SELECT id FROM test');
85 mysqli_stmt_field_count($stmt);