Lines Matching refs:stmt
15 $stmt = mysqli_stmt_init($link);
18 mysqli_stmt_insert_id($stmt);
23 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id LIMIT 1") ||
24 !mysqli_stmt_execute($stmt)) {
25 printf("[004] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
28 if (0 !== ($tmp = mysqli_stmt_insert_id($stmt)))
30 mysqli_stmt_close($stmt);
33 $stmt = mysqli_stmt_init($link);
34 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (100, 'a')") ||
35 !mysqli_stmt_execute($stmt)) {
36 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
39 if (0 !== ($tmp = mysqli_stmt_insert_id($stmt)))
43 (!mysqli_stmt_prepare($stmt, "ALTER TABLE test MODIFY id INT NOT NULL AUTO_INCREMENT") ||
44 !mysqli_stmt_execute($stmt))) {
45 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
50 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(label) VALUES ('a')") ||
51 !mysqli_stmt_execute($stmt)) {
52 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
54 if (0 === ($tmp = mysqli_stmt_insert_id($stmt)))
56 mysqli_stmt_close($stmt);
61 mysqli_stmt_insert_id($stmt);