Posted by Michael Fesser on 11/20/06 17:48
..oO(Christoph Burschka)
>Akhenaten wrote:
>
>> The following snippet (for whatever reason) returns no value for the
>> count. Suggestions?
>> [...]
>
>1. You can't pass variables within single quotes.
>[...]
>
>2. Strings in MySQL queries need to be surrounded by quotes (either single or
>double).
>[...]
3. mysql_query() just returns a resource ID. You have to use one of the
mysql_fetch_* functions to get the actual results.
Micha
Navigation:
[Reply to this message]
|