Lines Matching refs:stmt
14 $stmt = mysqli_stmt_init($link);
17 mysqli_stmt_insert_id($stmt);
22 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id LIMIT 1") ||
23 !mysqli_stmt_execute($stmt)) {
24 printf("[004] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
27 if (0 !== ($tmp = mysqli_stmt_insert_id($stmt)))
29 mysqli_stmt_close($stmt);
32 $stmt = mysqli_stmt_init($link);
33 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (100, 'a')") ||
34 !mysqli_stmt_execute($stmt)) {
35 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
38 if (0 !== ($tmp = mysqli_stmt_insert_id($stmt)))
42 (!mysqli_stmt_prepare($stmt, "ALTER TABLE test MODIFY id INT NOT NULL AUTO_INCREMENT") ||
43 !mysqli_stmt_execute($stmt))) {
44 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
49 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(label) VALUES ('a')") ||
50 !mysqli_stmt_execute($stmt)) {
51 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
53 if (0 === ($tmp = mysqli_stmt_insert_id($stmt)))
55 mysqli_stmt_close($stmt);
60 mysqli_stmt_insert_id($stmt);