Lines Matching refs:stmt
13 $stmt = mysqli_stmt_init($link);
16 mysqli_stmt_insert_id($stmt);
21 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id LIMIT 1") ||
22 !mysqli_stmt_execute($stmt)) {
23 printf("[004] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
26 if (0 !== ($tmp = mysqli_stmt_insert_id($stmt)))
28 mysqli_stmt_close($stmt);
31 $stmt = mysqli_stmt_init($link);
32 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (100, 'a')") ||
33 !mysqli_stmt_execute($stmt)) {
34 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
37 if (0 !== ($tmp = mysqli_stmt_insert_id($stmt)))
41 (!mysqli_stmt_prepare($stmt, "ALTER TABLE test MODIFY id INT NOT NULL AUTO_INCREMENT") ||
42 !mysqli_stmt_execute($stmt))) {
43 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
48 if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(label) VALUES ('a')") ||
49 !mysqli_stmt_execute($stmt)) {
50 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
52 if (0 === ($tmp = mysqli_stmt_insert_id($stmt)))
54 mysqli_stmt_close($stmt);
59 mysqli_stmt_insert_id($stmt);