Une incrémentation capriciseuse

PDO('mysql:host='. $host_name .';dbname='. $database , $user_name , $password, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)); $Message=$bdd->query('SELECT count(*) as total FROM message'); $nombreMessage=$Message->fetch(); //calcul

14
Accès refusé database

pdo = new PDO('mysql:host='.$conf['host'].';dbname='.$conf['database'].';'.$conf['login'].$conf['password']); Model::$connections[$this->db] = $pdo; }catch(PDOException $e){ if(Conf::$debug >= 1){ die($e->getMessage()); }else

2
Commentaire article, souci avec le login compte

pdo->prepare("INSERT INTO t_commentaire SET content_commentaire = ?, ref = ?, ref_id = ?, add_user = ?, date_commentaire = ?"); $req->execute(array($_POST['content_commentaire'], $ref, $ref_id, $_SESSION['auth']->id_user, $date

5
Récupération des colonnes d'une table

PDO d'abord. ET mysql\_list\_field aussi j'ai essayé. Voici ma fonction : $tab = array(); if ($this->error) return FALSE; $config = $this->config; $connexion = mysql_connect($config->server, $config

1
Problème execute();

PDO('mysql:host=localhost;dbname=test;charset=utf8', 'root', ''); echo 'Connection réussit'; } catch (Exception $e) { die('Erreur : ' . $e->getMessage()); } var_dump($bdd); $bddInfos = $bdd->prepare("SELECT * FROM infos"); $bddExes = $bddInfos

1
Avez-vous déjà eu ce problème ?

pdo. Quand je vais sur ma page J'ai "Could not find Driver", j'en ai déduis que c'était MySQL le problème. La question est comment le régler ? J'ai enlevé

11
Récuperation des fichiers stockés dans la base de données

PDO('mysql:host=localhost;dbname=forum','root',''); } catch(PDOException $e){ print "Erreur!: ".$e->getMessage()." "; die(); echo "problème"; } if(isset($_FILES['photo']['name'])) { $FILES = @$_POST['url']; } else { $_FILES=""; } $sql = "INSERT INTO

2
problème de redirection lors de la réinitialisation du mot de passe

pdo->prepare('UPDATE infosdesclients SET mot_de_passe = ?'); $pdo->execute([$nouveau_mot_de_passe]); $_SESSION['authentification']=$tab; header('location: page_de_jeu.php'); } } }} ?> Konamicash Nouveau mot de passe confirmation_nouveau_mot_de_passe

8
problème d'encodage

PDO("mysql:host=".DB_HOST.";dbname=".DB_NAME, DB_USERNAME, DB_PASSWORD); $db->exec("SET CHARACTER SET utf8"); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); }catch(PDOException $e){ die('erreur

17
pagination suivant /precedent

PDO::PARAM_INT); $stmt->execute(); $episodes = $stmt->fetchAll(PDO::FETCH_ASSOC); if( count($episodes) != 1 ) { include "./erreur.php"; die(); } else { $episode = $episodes[0]; } ?> Naruto shippuden épisode :

2