37 visualizações
Aide pour mon fichier config.php
lkndckjdc

23 assuntos, 285 respostas

Mensagem não lida
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


?>
1 participante
1 resposta
lkndckjdc

23 assuntos, 285 respostas

Mensagem não lida
je fait sa pour mon futur folio, donc je voudrait avoir des avies