Added to [PHP] More values than I want !(php->mysql query)
| From: | Alain "\"Cyb\" | Date: | Sat, 16 Dec 2000 12:27:29 +0000 |
| Subject: | Added to [PHP] More values than I want !(php->mysql query) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30666@lists.php.net to get a copy of this message | ||
I replaced the "isset's" with :
if ($Categorie !="")
{
$query .= " AND cybgoods.Gcat = $Categorie";
$query .= " AND categorie.cat_id = $Categorie";
}
if ($materiel !="")
{
$query .= " AND cybgoods.Pcat = $materiel";
$query .= " AND materiel.mat_id = $materiel";
}
But that is still not working :/
The "Loop" happens whether I enter these Values or Not !
IE If I'm looking for a type of Chair, it will return me all the Chair
types (OK), but will put them in all categories as well ! (Cars, games,
books)...
Al