Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $PARAM_hote='localhost'; // le chemin vers le serveur
- $PARAM_port='3306';
- $PARAM_nom_bd='durand'; // le nom de votre base de données
- $PARAM_utilisateur='root'; // nom d'utilisateur pour se connecter
- $PARAM_mot_passe=''; // mot de passe de l'utilisateur pour se connecter
- $durand = new PDO('mysql:host='.$PARAM_hote.';port='.$PARAM_port.';dbname='.$PARAM_nom_bd, $PARAM_utilisateur, $PARAM_mot_passe);
- $var = $durand->query("SELECT `product_name` FROM `#__{vm}_product` WHERE `product_id` = '31'" );
- echo $var;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement