Anthony1994 Posted September 28, 2010 Share Posted September 28, 2010 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 />");} <?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] ?> I want a few pictures to display when they've reffered 5 people. Please help me thanks. Quote Link to comment Share on other sites More sharing options...
rwwd Posted September 28, 2010 Share Posted September 28, 2010 Ok, <?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) or die(mysql_error()); if($rowRefSystem1[0] > 0){ echo "<br /><a href=\"Scr2.php?Ref=\"".$rowRefSystem1[0]."\">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 /> "; } ?> That'll do ya! Rw Quote Link to comment Share on other sites More sharing options...
Anthony1994 Posted September 28, 2010 Author Share Posted September 28, 2010 Thanks for helping I tryed what you did but I have a little error: http://www.qlikes.com/xboxlive/index.php Can you go down until you see: "You have refered over 5 people!" Notice how the pictures are conjested, theres meant to be a image in between the 2, named continue.png Thanks Quote Link to comment Share on other sites More sharing options...
Anthony1994 Posted September 28, 2010 Author Share Posted September 28, 2010 Can u tell me whats wrong this pls ; [quote][quote]if($rowRefSystem1[0] > -1){ echo "<br/> <a href=\"Scr2.php?Ref=\"".$rowRefSystem1[0]."\"><img border = "0" src=\"images/24-0.gif\" /> You have refered over 5 people! <img border = "0" src=\"images/24-0.gif\" /></a><br /> "; }[/quote][/quote] Quote Link to comment Share on other sites More sharing options...
kickstart Posted September 28, 2010 Share Posted September 28, 2010 Hi You haven't escaped the double quotes around the border parms. All the best Keith Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.