</td> <td> <span class="erreur"><?php echo $messages['nom']; ?> </span> </td> </tr> <!-- Prénom --> <tr> <td class="droit"> <label for="prenom">Prénom:</label> </td> <td> <input id="prenom" type="text" name="prenom" value="<?php echo $client->getPrenom(); ?> "> </td> <td> <span class="erreur"><?php echo $messages['prenom']; ?> </span> </td> </tr> <!-- Courriel --> <tr> <td class="droit"> <label for="courriel">Courriel:</label> </td>
public function update(Client $clt) { $req = $this->_db->prepare("UPDATE client SET nom=:nom, prenom=:prenom, rue=:rue, codePostal=:cp, ville=:ville, vip=:vip, dateInscription=:dateIns, mail=:mail, mdp=:mdp, validate=:val WHERE idClient=:id"); $req->execute(array(":nom" => $clt->getNom(), ":prenom" => $clt->getPrenom(), ":rue" => $clt->getRue(), ":cp" => $clt->getCodePostal(), ":ville" => $clt->getVille(), ":vip" => $clt->getVip(), ":dateIns" => $clt->getDateInscription(), ":mail" => $clt->getMail(), ":mdp" => $clt->getMdp(), ":val" => $clt->getValidate(), ":id" => $clt->getIdClient())); }