Lines Matching refs:stmt
15 if (!$stmt = mysqli_stmt_init($link))
20 mysqli_stmt_close($stmt);
25 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test"))
26 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
28 if (true !== ($tmp = mysqli_stmt_close($stmt)))
32 mysqli_stmt_close($stmt);
37 if (!$stmt = mysqli_stmt_init($link))
40 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (?, ?)"))
41 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
44 if (!mysqli_stmt_bind_param($stmt, "is", $id, $label))
45 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
48 if (!mysqli_stmt_execute($stmt))
49 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
53 if (true !== ($tmp = mysqli_stmt_close($stmt)))
59 if (!$stmt = mysqli_stmt_init($link))
62 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test"))
63 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
66 if (!mysqli_stmt_bind_result($stmt, $id, $label))
67 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
69 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
70 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
74 if (true !== ($tmp = mysqli_stmt_close($stmt)))