First Draft
First Draft of the Example Files
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?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 = "UPDATE cats SET name='Charlie' WHERE name='Charly'";
|
||||
$result = $pdo->query($query);
|
||||
?>
|
||||
Reference in New Issue
Block a user