Files
lpmj6/11/13.php
T
RobinNixon 0335342e00 First Draft
First Draft of the Example Files
2020-12-10 13:21:38 +00:00

16 lines
289 B
PHP

<?php
require_once 'login.php';
try
{
$pdo = new PDO($attr, $user, $pass, $opts);
}
catch (\PDOException $e)
{
throw new \PDOException($e->getMessage(), (int)$e->getCode());
}
$query = "DELETE FROM cats WHERE name='Growler'";
$result = $pdo->query($query);
?>