googleit
03-08-2007, 05:32 PM
iam creating my own cms and iam trying to pull articles from a db but i get this annoying error :(
Parse error: parse error, unexpected $ in /home/content/b/r/a/bradleyhession/html/test/test2.php on line 261
<?php
if(isset($_GET['EntryID'])) //If looking at a specific Article
{
$EntryID=$_GET['EntryID'];
$tviewed = "UPDATE CMS_articles SET timesviewed=timesviewed+1
WHERE EntryID = '$EntryID'";
mysql_query($tviewed);
print "<center><table border='0' width=90% >";
print "<tr><td valign='top' width='75%' align='center'><br><br>";
print "<table border='1' width='90%' bordercolor=$borderc cellpadding='4' cellspacing='0'><tr><td bgcolor=$barcolor>";
$article="SELECT * FROM CMS_articles where EntryID='$EntryID'";
$article2=mysql_query($article) or die("It died");
while($r=mysql_fetch_array($article2))
?>
any help wud be helpful
thanks
-googleit
Parse error: parse error, unexpected $ in /home/content/b/r/a/bradleyhession/html/test/test2.php on line 261
<?php
if(isset($_GET['EntryID'])) //If looking at a specific Article
{
$EntryID=$_GET['EntryID'];
$tviewed = "UPDATE CMS_articles SET timesviewed=timesviewed+1
WHERE EntryID = '$EntryID'";
mysql_query($tviewed);
print "<center><table border='0' width=90% >";
print "<tr><td valign='top' width='75%' align='center'><br><br>";
print "<table border='1' width='90%' bordercolor=$borderc cellpadding='4' cellspacing='0'><tr><td bgcolor=$barcolor>";
$article="SELECT * FROM CMS_articles where EntryID='$EntryID'";
$article2=mysql_query($article) or die("It died");
while($r=mysql_fetch_array($article2))
?>
any help wud be helpful
thanks
-googleit