PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $query = "SELECT COUNT(*) cnt FROM sakila.actor;"; // get DB version using PDO $stmt = $pdo->prepare($query); $stmt->execute(); $count = $stmt->fetchColumn(); printf("Count rows in table actor is: %d", $count);
Show:  
Copy Clear