PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table persons ( id int primary key, name varchar(64) ); insert into persons values (10, 'Alice'), (20, 'Bob');
Copy Clear
Copy Format Clear
<?php $result = $mysqli->query("SELECT name FROM persons WHERE id = 10"); echo $result->fetch_column();
Show:  
Copy Clear