Skip to content

Instantly share code, notes, and snippets.

@Jul10l1r4
Created December 24, 2017 19:09
Show Gist options
  • Save Jul10l1r4/1ee598877feebd942e2a861eee6c7542 to your computer and use it in GitHub Desktop.
Save Jul10l1r4/1ee598877feebd942e2a861eee6c7542 to your computer and use it in GitHub Desktop.
<?php
try {
$pdo = new PDO('mysql:host=localhost;dbname=teste', 'admin', "baruch hashem");
$stmt = $pdo->prepare('DELETE FROM contador WHERE email = :id');
$stmt->execute(
array(
':id' => '[email protected]'
)
);
$s = $stmt->fetchALL(PDO::FETCH_ASSOC);
// echo $stmt;
print_r( $s );
echo $stmt->rowCount();
} catch(PDOException $e) {
echo 'Error: ' . $e->getMessage();
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment