PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
CREATE TABLE people ( id int NOT NULL AUTO_INCREMENT, name varchar(255), PRIMARY KEY (id) ); INSERT INTO people (name) VALUES ("Bob"), ("Frank"), ("Joe");
Copy Clear
Copy Format Clear
<?php use Carbon\Carbon; $query = "SELECT * FROM people;"; //$query = "INSERT INTO people (name) VALUES ('kip'), ('bill');"; // Run query using mysqli $result = $mysqli->query($query); // $result = $stmt->execute(); //var_dump(get_class($result)); var_dump($result); var_dump(mysqli_real_escape_string($mysqli, 'Foo "Bar" Baz'));
Show:  
Copy Clear