Lines Matching refs:stmt
14 if (!$stmt = mysqli_stmt_init($link))
19 mysqli_stmt_close($stmt);
24 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test"))
25 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
27 if (true !== ($tmp = mysqli_stmt_close($stmt)))
31 mysqli_stmt_close($stmt);
36 if (!$stmt = mysqli_stmt_init($link))
39 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (?, ?)"))
40 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
43 if (!mysqli_stmt_bind_param($stmt, "is", $id, $label))
44 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
47 if (!mysqli_stmt_execute($stmt))
48 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
52 if (true !== ($tmp = mysqli_stmt_close($stmt)))
58 if (!$stmt = mysqli_stmt_init($link))
61 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test"))
62 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
65 if (!mysqli_stmt_bind_result($stmt, $id, $label))
66 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
68 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
69 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
73 if (true !== ($tmp = mysqli_stmt_close($stmt)))