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 $stmt = $mysqli->prepare($query); // $result = $stmt->execute(); //var_dump(get_class($result)); var_dump($stmt->field_count);
Show:  
Copy Clear