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. Link to comment https://forums.phpfreaks.com/topic/214596-parse-error-syntax-error-unexpected-t_string-in/ 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 Link to comment https://forums.phpfreaks.com/topic/214596-parse-error-syntax-error-unexpected-t_string-in/#findComment-1116665 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 Link to comment https://forums.phpfreaks.com/topic/214596-parse-error-syntax-error-unexpected-t_string-in/#findComment-1116670 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] Link to comment https://forums.phpfreaks.com/topic/214596-parse-error-syntax-error-unexpected-t_string-in/#findComment-1116672 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 Link to comment https://forums.phpfreaks.com/topic/214596-parse-error-syntax-error-unexpected-t_string-in/#findComment-1116674 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.