Lines Matching refs:stmt

14     $stmt = mysqli_stmt_init($link);
17 mysqli_stmt_field_count($stmt);
22 if (mysqli_stmt_prepare($stmt, ''))
26 mysqli_stmt_field_count($stmt);
31 if (!mysqli_stmt_prepare($stmt, 'SELECT 1'))
32 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
33 if (1 !== ($tmp = mysqli_stmt_field_count($stmt)))
36 if (!mysqli_stmt_prepare($stmt, 'SELECT 1, 2'))
37 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
38 if (2 !== ($tmp = mysqli_stmt_field_count($stmt)))
41 if (!mysqli_stmt_prepare($stmt, 'SELECT id, label FROM test'))
42 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
43 if (2 !== ($tmp = mysqli_stmt_field_count($stmt)))
46 if (!mysqli_stmt_prepare($stmt, 'SELECT label FROM test') ||
47 !mysqli_stmt_execute($stmt))
48 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
49 if (1 !== ($tmp = mysqli_stmt_field_count($stmt)))
54 if (mysqli_stmt_bind_param($stmt, "s", $label))
59 while (mysqli_stmt_fetch($stmt))
60 if (1 !== ($tmp = mysqli_stmt_field_count($stmt)))
63 if (!mysqli_stmt_prepare($stmt, 'INSERT INTO test(id) VALUES (100)'))
64 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
65 if (0 !== ($tmp = mysqli_stmt_field_count($stmt)))
68 if (!mysqli_stmt_prepare($stmt, "UPDATE test SET label = 'z' WHERE id = 1") ||
69 !mysqli_stmt_execute($stmt))
70 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
72 if (0 !== ($tmp = mysqli_stmt_field_count($stmt)))
75 mysqli_stmt_close($stmt);
78 mysqli_stmt_prepare($stmt, 'SELECT id FROM test');
84 mysqli_stmt_field_count($stmt);