Example #1
0
						</td>
						<td>
							<span class="erreur"><?php 
echo $messages['adresse'];
?>
</span>
						</td>
					</tr>
					<!-- Ville -->
					<tr>
						<td class="droit">
							<label for="ville">Ville:</label>
						</td>
						<td>
							<input id="ville" type="text" name="ville" value="<?php 
echo $client->getVille();
?>
">
						</td>
						<td>
							<span class="erreur"><?php 
echo $messages['ville'];
?>
</span>
						</td>
					</tr>
					<!-- Code postal -->
					<tr>
						<td class="droit">
							<label for="codePostal">Code postal:</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()));
 }