Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- try
- {
- $bdd = new PDO('mysql:host=localhost;dbname=upload', 'upload', 'uploads');
- }
- catch(Exception $e)
- {
- die('Erreur : '.$e->getMessage());
- }
- //$_GET['id'] = (int) $_GET['id'];
- echo $_GET['id'];
- $reponse = $bdd->prepare('SELECT * FROM liste WHERE id= ?');
- $reponse->execute(array($_GET['id']));
- //$reponse->execute(array("1"));
- while ($donnees = $reponse->fetch())
- {
- echo $donnees['nom_or'];
- }
- $reponse->closeCursor();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement