23 soggetti, 285 risposte
|
Messaggio non letto
J'aimerais avoir des avis sur mon fichier qui me serre à contenir toutes les variables que je créerai fur à mesure.
<?php
//Connection a la base de donne
$connectdb = new PDO
('mysqli:host=$dbhost;dbname=$dbname;charset=utf8', '$dbuser', '$dbpass');
//Configuration de la base de donne
$dbhost = "test";
$dbname = "test";
$dbuser = "test";
$dbpass = "test";
//Variable users
$pseudocheck = $connectdb->query('SELECT pseudo FROM users');
$pseudolaunch = $connectdb->prepare('INSERT INTO users (pseudo) VALUES (:pseudo)');
$passwordcheck = $connectdb->query('SELECT password FROM users');
$passwordlaunch = $connectdb->prepare('INSERT INTO users (password) VALUES (:password)');
$passwordhache = sha1($_POST['password']);
$emailcheck = $connectdb->query('SELECT email FROM users');
$emaillaunch = $coonnectdb->prepare('INSERT INTO users (email) VALUES (:email)');
//Variable actualites
//Variable forum
//Variable newsletter
?>
|