Could anyone please help me with thiss error: Parse error: syntax error, unexpected T_STRING in /home/a2256639/public_html/xboxlive/index.php on line 143 Line 143: echo (">You have refered over 5 people!<br /><img src="images/24-0.gif"/><img src="images/continue.png"/><img src="images/24-0.gif"/></a><br />");} Code (markup): <?php $refSystem1 = mysql_query("SELECT COUNT(ref_id) FROM referralsystem WHERE ref_id='".$uId."'") or die("Error in ref :".mysql_error()); $rowRefSystem1 = mysql_fetch_array($refSystem1); if($rowRefSystem1[0] > 0){echo ("<br /><a href='Scr2.php?Ref="); echo ($rowRefSystem1[0]); [B]echo (">You have refered over 5 people!<br /><img src="images/24-0.gif"/><img src="images/continue.png"/><img src="images/24-0.gif"/></a><br />");}[/B] ?> Code (markup): I want a few pictures to display when they've reffered 5 people. Please help me thanks.
try this, you just need to escape the image links ie <img src=\"images/24-0.gif\"/> not <img src="images/24-0.gif"/> echo (">You have refered over 5 people!<br /><img src=\"images/24-0.gif\"/><img src=\"images/continue.png\"/><img src=\"images/24-0.gif\"/></a><br />");} PHP:
I've decided to do it for 1 image only, is this correct: echo (">You have refered over 5 people!<br /><img src=\"images/continue.png\"/></a><br />");}