Lines Matching refs:stmt
13 $stmt = mysqli_stmt_init($link);
16 mysqli_stmt_field_count($stmt);
21 if (mysqli_stmt_prepare($stmt, ''))
25 mysqli_stmt_field_count($stmt);
30 if (!mysqli_stmt_prepare($stmt, 'SELECT 1'))
31 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
32 if (1 !== ($tmp = mysqli_stmt_field_count($stmt)))
35 if (!mysqli_stmt_prepare($stmt, 'SELECT 1, 2'))
36 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
37 if (2 !== ($tmp = mysqli_stmt_field_count($stmt)))
40 if (!mysqli_stmt_prepare($stmt, 'SELECT id, label FROM test'))
41 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
42 if (2 !== ($tmp = mysqli_stmt_field_count($stmt)))
45 if (!mysqli_stmt_prepare($stmt, 'SELECT label FROM test') ||
46 !mysqli_stmt_execute($stmt))
47 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
48 if (1 !== ($tmp = mysqli_stmt_field_count($stmt)))
53 if (mysqli_stmt_bind_param($stmt, "s", $label))
58 while (mysqli_stmt_fetch($stmt))
59 if (1 !== ($tmp = mysqli_stmt_field_count($stmt)))
62 if (!mysqli_stmt_prepare($stmt, 'INSERT INTO test(id) VALUES (100)'))
63 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
64 if (0 !== ($tmp = mysqli_stmt_field_count($stmt)))
67 if (!mysqli_stmt_prepare($stmt, "UPDATE test SET label = 'z' WHERE id = 1") ||
68 !mysqli_stmt_execute($stmt))
69 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
71 if (0 !== ($tmp = mysqli_stmt_field_count($stmt)))
74 mysqli_stmt_close($stmt);
77 mysqli_stmt_prepare($stmt, 'SELECT id FROM test');
83 mysqli_stmt_field_count($stmt);