Sorry if I sound stupid, I am a newbie with php and I am helping to develop a web site for my club.
I need help here, this error has been bugging me for weeks and I can't seem to fix it. It is suppose to be a simple if then statement, but the href part keeps generating error:
Parse error: parse error, expecting ','' or';'' in /usr/home/xxxxx/htdocs/contents1.php on line 93
Here's the if then statement in full, what is wrong with the href line?
<?
if($CatID=News)
{
echo $string;
}
else
{
echo <a href="read.php?CatID=<?echo $row1["field"];?>&ID=<?echo $row1["ID"];?>">READ</a>
}
?>
Thanks in advance.