httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Greenlees" <ja...@shaw.ca>
Subject Re: [users@httpd] PHP CODE DRIVING ME NUTS
Date Mon, 02 Sep 2002 23:16:35 GMT

usually the $ means the following textis a variable.
try removing the $ from the select.

Javier Dussaillant wrote:

> I don't use PHP very much (mostly Perl) but just from an SQL point of 
> view I see that you are missing the quotes that should enclose '$bar'. 
> Also, I don't know what that dollar sign means before the SELECT 
> statement.
>
> At 17:18 02-09-2002, Grant Cooper wrote:
>
>> $bar = "The Beverage";
>> $SQL = "$SELECT * FROM review WHERE bar_name=$bar";
>>
>> When sql executes the statement is kills off the "The" part.
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server 
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>         Saludos,
>
>                 Javier Dussaillant G.
>                 ashkar@vrweb.cl
>                 Departamento de Desarrollo VRWEB ltda.
>                 http://www.vrweb.cl
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message