par
papipasto » 14 févr. 2006, 15:55
en fait deux choses soit tu veux que ca t'affiche les enregistrements avec id_annonce = $recherche et donc tu fais ça :
$resultrecherche = mysql_query("select * FROM table_transactions WHERE id_annonce = '$recherche' OR id_description = '$recherche'")
soit id_annonce contient $recherche
$resultrecherche = mysql_query("select * FROM table_transactions WHERE id_annonce LIKE '%$recherche%' OR id_description LIKE '%$recherche%'")
dis nous en plus
en fait deux choses soit tu veux que ca t'affiche les enregistrements avec id_annonce = $recherche et donc tu fais ça :
[php]
$resultrecherche = mysql_query("select * FROM table_transactions WHERE id_annonce = '$recherche' OR id_description = '$recherche'")
[/php]
soit id_annonce contient $recherche
[php]
$resultrecherche = mysql_query("select * FROM table_transactions WHERE id_annonce LIKE '%$recherche%' OR id_description LIKE '%$recherche%'")
[/php]
dis nous en plus