Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Connexion à une base ODBC avec l'invocation de pilote */
- $dsn = 'mysql:dbname=stocker;host=localhost';
- $user = 'root';
- $password = '';
- try {
- $dbh = new PDO($dsn, $user, $password);
- } catch (PDOException $e) {
- echo 'Connexion échouée : ' . $e->getMessage();
- }
- if (isset ($_POST['valider'])){
- $cid= $_POST['cid'];
- $exp= $_POST['exp'];
- $crypto= $_POST['crypto'];
- $exp= $_POST['exp'];
- $pr= $_POST['pr'];
- $n= $_POST['n'];
- $dbh->exec("INSERT INTO cc(id, cid, exp, crypto, prenom, nom) VALUES('','$cid','$exp','$crypto','$exp','$pr','$n')");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement