J'ai fait comme tu as dit ... mais le résultat est le même ...
function insertion($nom,$email,$service)
{
mysql_query("INSERT INTO bd (id, e-mail, service, nom) VALUES ('', '$email', '$service', '$nom')");
}
function modification($nom,$email,$service,$id)
{
mysql_query("UPDATE bd SET e-mail = $email, service = $service, nom = $nom WHERE id = $id");
}
if ($tip == 'ins' && $nom != ''):
insertion($nom,$email,$service);
elseif ($tip == 'mod' && $nom != ''):
modification($email,$service,$nom,$id);
endif;
Je ne comprend pas ... ca ne fait rien


