Lines Matching refs:stmt
13 if (!$stmt = mysqli_stmt_init($link))
18 mysqli_stmt_close($stmt);
23 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test"))
24 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
26 mysqli_stmt_close($stmt);
29 mysqli_stmt_close($stmt);
34 if (!$stmt = mysqli_stmt_init($link))
37 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (?, ?)"))
38 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
41 if (!mysqli_stmt_bind_param($stmt, "is", $id, $label))
42 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
45 if (!mysqli_stmt_execute($stmt))
46 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
50 mysqli_stmt_close($stmt);
55 if (!$stmt = mysqli_stmt_init($link))
58 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test"))
59 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
62 if (!mysqli_stmt_bind_result($stmt, $id, $label))
63 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
65 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
66 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
70 mysqli_stmt_close($stmt);