Eléphant du PHP |
206 Messages
15 déc. 2005, 10:59
erf nan elle marche un coup sur 2 :/
et quand j'effectue une recherche sur le code postal ca met mets une erreur sql
<?
include('connection.inc.php');
$query = "SELECT * FROM agent WHERE nom LIKE '%".$_POST['nom']."%' AND postal LIKE '%".$_POST['postal']."%' ORDER BY nom";
$reponse = mysql_query($query)or die ('Erreur SQL !<br>'.mysql_error());
while ($donnees = mysql_fetch_array($reponse) )
{
// on affiche les informations de l'enregistrement en cours
echo $donnees['nom'];
echo "<br />";
echo $donnees['postal'];
echo "<br />";
}
?>
Cela marchait il y a 2 min je pige rien