Re: variables
| From: | Jim Sheetz | Date: | Tue, 03 Oct 2000 18:06:55 +0000 |
| Subject: | Re: variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18459@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
variables are case sensitive in php, so ...&catfield=... should be
...&catField=... to match the query example above.
Jim.