variables
| From: | Wayne Michel | Date: | Wed, 20 Sep 2000 05:00:22 +0000 |
| Subject: | variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17232@lists.php.net to get a copy of this message | ||
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