Created
December 24, 2017 19:09
-
-
Save Jul10l1r4/1ee598877feebd942e2a861eee6c7542 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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