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 users (id int)"); $mysqli->query("insert into users values(1)"); echo json_encode($mysqli->query("select * from users")->fetch_assoc()); $id = "1;drop table users"; $id = $mysqli->real_escape_string($id); $mysqli->multi_query("select * from users where id=$id"); $mysqli->store_result(); $mysqli->next_result(); echo json_encode($mysqli->query("select * from users")->fetch_assoc());
Show:  
Copy Clear