Lines Matching refs:stmt
24 if (!$stmt = mysqli_stmt_init($link))
27 if (NULL !== ($tmp = mysqli_stmt_param_count($stmt)))
30 function func_test_mysqli_stmt_param_count($stmt, $query, $expected, $offset) {
32 if (!mysqli_stmt_prepare($stmt, $query)) {
33 printf("[%03d] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_error($stmt));
37 if ($expected !== ($tmp = mysqli_stmt_param_count($stmt)))
44 func_test_mysqli_stmt_param_count($stmt, "SELECT 1 AS a", 0, 10);
45 func_test_mysqli_stmt_param_count($stmt, "INSERT INTO test(id) VALUES (?)", 1, 20);
46 func_test_mysqli_stmt_param_count($stmt, "INSERT INTO test(id, label) VALUES (?, ?)", 2, 30);
47 func_test_mysqli_stmt_param_count($stmt, "INSERT INTO test(id, label) VALUES (?, '?')", 1, 40);
49 mysqli_stmt_close($stmt);
51 if (NULL !== ($tmp = mysqli_stmt_param_count($stmt)))