PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
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', $tituloPT=1); if (mysqli_stmt_execute($stmtAddNoticia)) { echo "ok"; } else { echo "error 1"; } } else { echo "<br><br> error 2"; }
Show:  
Copy Clear