Posted by bokke on 10/26/06 20:10
Rick you genius ---- aftre 2 days - 40 coffees - I am left with this!
<?
$query = "SELECT * FROM news WHERE
writer='".mysql_real_escape_string($_GET["SubCat"])."'";
$result = mysql_query($query)
or die ("no can do.");
while($row = mysql_fetch_array($result))
{
?>
works like a charm!!!!!!
used to have this
$query = "SELECT * FROM news WHERE writer='$SubCat' ";
$result = mysql_query($query)
or die ("no can do.");
while($row = mysql_fetch_array($result))
{
Thanks man - thank you - sorry about the topposting et all
[Back to original message]
|