Lines Matching refs:stmt
24 if (!$stmt = mysqli_stmt_init($link))
28 if (false !== ($tmp = mysqli_stmt_close($stmt)))
31 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test"))
32 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
34 if (true !== ($tmp = mysqli_stmt_close($stmt)))
37 if (false !== ($tmp = mysqli_stmt_close($stmt)))
40 if (!$stmt = mysqli_stmt_init($link))
43 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (?, ?)"))
44 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
47 if (!mysqli_stmt_bind_param($stmt, "is", $id, $label))
48 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
51 if (!mysqli_stmt_execute($stmt))
52 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
56 if (true !== ($tmp = mysqli_stmt_close($stmt)))
62 if (!$stmt = mysqli_stmt_init($link))
65 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test"))
66 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
69 if (!mysqli_stmt_bind_result($stmt, $id, $label))
70 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
72 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
73 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
77 if (true !== ($tmp = mysqli_stmt_close($stmt)))