General Community > Scripting Help

Tired Eyes... Can't seem to find the parse error

(1/1)

Les Mackenzie:

--- Code: ---$SQL_Array=mysql_fetch_array($SQL_Result);
    $abrv = substr($SQL_Array['content'], 0, 250);
    $title = $SQL_Array['slug'];
    $story = $abrv;
    $number = $SQL_Array['id'];
    echo "$title - $story... <a href="banArticle.php?number=$number">read more</a><BR><BR>";

--- End code ---

Parse error: parse error, expecting `','' or `';'' in /home/neo10010/public_html/Development/SITE/bannerall.php on line 42

Line 42 is echo "$title - $story... <a href="banArticle.php?number=$number">read more</a><BR><BR>";

I know it's something simple but I can't seem to find it  ???

Does anyone have any theories?

Parham:
ESCAPE THE QUOTES in the middle!!! LOL

Les Mackenzie:
Thanks  ;D

eFishie:
:D Yeah, tired eyes.

Now thinking: Lucky pig! 30 minutes? Can you imagine?

Parham:
my pleasure :)

Navigation

[0] Message Index

Go to full version