PHPize Online / SQLize Online

A A A
Share   Donate   Blog   Popular
Copy Format Clear
Copy
Copy Format Clear
<?php $mysqli->query("create table t (i int)"); $stmtAddNoticia = mysqli_stmt_init($mysqli); $queryAddNoticia = "INSERT INTO t (i) VALUES (?)"; if (mysqli_stmt_prepare($stmtAddNoticia, $queryAddNoticia)) { mysqli_stmt_bind_param($stmtAddNoticia, 's', ...[1]); if (mysqli_stmt_execute($stmtAddNoticia)) { echo "ok"; } else { echo "error 1"; } } else { echo "<br><br> error 2"; }
Show:  
Copy