Posted by Rik on 10/26/06 19:31
Rik wrote:
> bokke wrote:
>> Sorry Rick where in the code would I echo the $query - and i'll give
>> it
>> a go?
>
> Please stop topposting, a reply should be below a (trimmed down)
> quote).
>
> But here:
D'oh. ctrl-c/ctrl-s switch error :-)
$query = "SELECT * FROM news WHERE
writer='".mysql_real_escape_string($_GET["SubCat"])."'";
echo $query;
$result = mysql_query($query) or die (mysql_error());
--
Rik Wasmus
[Back to original message]
|