PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $pdo->query("CREATE TABLE Picbruit (Id_B INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, heure_B TIME DEFAULT NULL)"); $pdo->query("INSERT INTO `Picbruit`(`heure_B`) VALUES ('08:53:47')"); $pdo->query("INSERT INTO `Picbruit`(`heure_B`) VALUES ('09:53:47')"); $pdo->query("INSERT INTO `Picbruit`(`heure_B`) VALUES ('10:53:47')"); $sql = $pdo->prepare("SELECT `heure_B` FROM `Picbruit`"); $sql->execute([]); $row = $sql->fetch(PDO::FETCH_BOTH); $H = $sql->fetchcolumn(); echo gettype($H), "\n"; //$H = $row[0]; echo " h: $H";
Show:  
Copy Clear