[PHP] Added to [PHP] More values than I want !(php->mysql query) From: Alain (alain.cyberspace <email protected>)
Date: 12/16/00

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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>