PDO Opinion?
Posted: Mon Aug 07, 2006 7:01 am
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
try {
$db = new PDO($dsn, $user, $password);
} catch (PDOException $e) {
echo 'Connect failed:'. $e->getMessage();
}
$stmt = $db->prepare("select * from country where name like 'Aus%'");
$stmt->execute();
while ($row = $stmt->fetch())
print_r($row);