Prob Requete php
Fermé
perduquepart
Messages postés
49
Date d'inscription
vendredi 11 janvier 2008
Statut
Membre
Dernière intervention
1 novembre 2009
-
9 oct. 2008 à 19:08
incaout Messages postés 347 Date d'inscription lundi 8 septembre 2008 Statut Membre Dernière intervention 15 novembre 2012 - 9 oct. 2008 à 22:03
incaout Messages postés 347 Date d'inscription lundi 8 septembre 2008 Statut Membre Dernière intervention 15 novembre 2012 - 9 oct. 2008 à 22:03
A voir également:
- Prob Requete php
- Easy php - Télécharger - Divers Web & Internet
- Php natif - Forum PHP
- La requête graphql n’est pas autorisée facebook - Forum Facebook
- Get_magic_quotes_gpc php 8 ✓ - Forum PHP
- Bouton php - Forum PHP
1 réponse
incaout
Messages postés
347
Date d'inscription
lundi 8 septembre 2008
Statut
Membre
Dernière intervention
15 novembre 2012
74
9 oct. 2008 à 22:03
9 oct. 2008 à 22:03
Salut,
Je ne connais pas bien mysql et les fonctions associées en PHP, mais normalement dans le tableau $_POST, les noms des champs doivent être en '' : $_POST['nom']. D'autre part, j'aurai écris la requete comme cela :
$queryupdateuser = "UPDATE tblusers
SET Prenom = '" . $_POST['txtPrenomProfil'] . "',
Nom = '" . $_POST['txtNomProfil'] . "',
User = '" . $_POST['txtUserProfil'] . "',
Password = '" . $_POST['txtPasswordProfil'] . "',
Email = '" . $_POST['txtEmailProfil'] ."'
WHERE ID = " . $_SESSION['ID'] ;
Cdlt
IC
Je ne connais pas bien mysql et les fonctions associées en PHP, mais normalement dans le tableau $_POST, les noms des champs doivent être en '' : $_POST['nom']. D'autre part, j'aurai écris la requete comme cela :
$queryupdateuser = "UPDATE tblusers
SET Prenom = '" . $_POST['txtPrenomProfil'] . "',
Nom = '" . $_POST['txtNomProfil'] . "',
User = '" . $_POST['txtUserProfil'] . "',
Password = '" . $_POST['txtPasswordProfil'] . "',
Email = '" . $_POST['txtEmailProfil'] ."'
WHERE ID = " . $_SESSION['ID'] ;
Cdlt
IC