par zazzou » 25 juin 2010, 11:25
par stealth35 » 25 juin 2010, 11:19
Alors ca c'est pas idiot! lol Mais du coup, pour l'autre truc, j'ai fais carrément: $req = $bdd->prepare('INSERT INTO matchs VALUES ( :id, :banderoles, :salle, :table ) ');
$req = $bdd->prepare('INSERT INTO matchs VALUES ( :id, :banderoles, :salle, :table ) ');
par zazzou » 25 juin 2010, 11:15
par stealth35 » 25 juin 2010, 11:13
!!! MERCI !
if(query) { header('Location: d.php'); }
par zazzou » 25 juin 2010, 11:10
par stealth35 » 25 juin 2010, 11:07
Ben non parce que j'aimerais qu'il affiche les données dans le tableau. Et la quand je fais "valider", il affiche une page blanche (f.php). Quand je fais précédent une fois que je suis sur cette page blanche, mes champs sont encore remplis, j'actualise la page et là il me les mets dans le tableau... Je ne sais pas si c'est très compréhnsible :s
header('Location: d.php');
par zazzou » 25 juin 2010, 11:05
par stealth35 » 25 juin 2010, 11:03
protège le nom de tes champs avec ` (accent grave atl gr + 7) matchs (`id`, `banderoles`, `salle`, `table`) Du coup il me renvoie ça: "bool(true) array(1) { [0]=> string(5) "00000" } array(1) { [0]=> string(5) "00000" }" mais par contre du coup il enregistre dans la table les données. (en mm tps il renvoie true)
protège le nom de tes champs avec ` (accent grave atl gr + 7) matchs (`id`, `banderoles`, `salle`, `table`)
matchs (`id`, `banderoles`, `salle`, `table`)
par zazzou » 25 juin 2010, 11:02
par stealth35 » 25 juin 2010, 10:53
par zazzou » 25 juin 2010, 10:48
false ca veux dire que ca n'as pas marché t'as bien verfié les valeur de ton php.ini ? Code : Tout sélectionnerdisplay_errors = On error_reporting = E_ALL | E_STRICT sinon fais un var_dump($bdd->errorInfo(), $req->errorInfo());
Code : Tout sélectionner
display_errors = On error_reporting = E_ALL | E_STRICT
var_dump($bdd->errorInfo(), $req->errorInfo());
bool(false) array(1) { [0]=> string(5) "00000" } array(3) { [0]=> string(5) "00000" [1]=> int(1064) [2]=> string(199) "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'table) VALUES ( '', 'ze', 'ze', 'ze' )' at line 1" }
par stealth35 » 25 juin 2010, 10:45
Non toujours rien dans ma table... Et quand je fais ce que tu dis, cela ne me renvoie pas true cela renvoie : bool(false) ...
par zazzou » 25 juin 2010, 10:43
par stealth35 » 25 juin 2010, 10:37
Ok alors je l'ai fais et il me renvoie ca: object(PDOStatement)#2 (1) { ["queryString"]=> string(109) "INSERT INTO matchs (id, banderoles, salle, table) VALUES ( :id, :banderoles, :salle, :table ) " } ??
$query = $req->execute(................ var_dump($query);
par zazzou » 25 juin 2010, 10:14