I'm new to PHP and databases and am currently battling blank pages. I tried to print the error messages on the web page, but no luck... Here's a sample PHP:
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require_once("scripts/config.php");
$pdo = new PDO("mysql:host=".$dbhost.";dbname="".$dbname, $uname, $dbpw);
$sql = "SELECT * FROM DbTable";
$statement = $pdo->prepare($sql);
echo $statement->execute();
?>
Why is this page coming up blank?
Thanks in advance.