RE: [PHP] variables

From: Date: Wed, 27 Sep 2000 06:01:33 +0000
Subject: RE: [PHP] variables
Groups: php.general 
Request: Send a blank email to php-general+get-17728@lists.php.net to get a copy of this message
Have a look at the case (the F in particular) catalogue.php?action=pmg&catfield=Corgi Is not the same as catalogue.php?action=pmg&catField=Corgi especially when your model_category is using $catField AlWaYs ChEcK yOuR CaPiTaLiZaTiOn. (hmm a little too warez l@@king, but you get the point). -----Original Message----- From: Wayne Michel [mailto:wayne@michel.com.au] Sent: September 20, 2000 01:00 PM To: PHP List Subject: [PHP] variables Hi, I am new to PHP and am muddling through. However, I have stumbled and would like assistance. I have the following lines of code: if ($action == "sort") { $query = "SELECT * FROM $tableName ORDER BY $orderField;" ; } if ($action == "pmg") { # $query = "SELECT * FROM $tableName WHERE model_category = $catField Entering the following URL works: catalogue.php?action=sort&orderField=Model Entering the following DOES NOT work: catalogue.php?action=pmg&catfield=Corgi Can some advise why? regards, Wayne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#17728) next »