PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table test (id int, value varchar(20)); insert into test set value='first';
Copy Clear
Copy Format Clear
<?php ini_set('display_errors' , '1'); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $pdo->exec('SET session wait_timeout=1'); $pdo->query('SELECT 1'); echo "SELECT 1\n"; sleep(2); $pdo->query('SELECT 1'); echo "SELECT 1\n $sss";
Show:  
Copy Clear