Parse error: syntax error, unexpected T_STRING in

Discussion in 'PHP' started by Anthony1994, Sep 27, 2010.

  1. #1
    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.
     
    Anthony1994, Sep 27, 2010 IP
  2. Spawny

    Spawny Well-Known Member

    Messages:
    252
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #2
    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:
     
    Spawny, Sep 27, 2010 IP
  3. Anthony1994

    Anthony1994 Member

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #3
    Thanks trying it now
     
    Anthony1994, Sep 27, 2010 IP
  4. Anthony1994

    Anthony1994 Member

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #4
    Only problem now is the pictures are conjested and aren't next to each other.
     
    Anthony1994, Sep 27, 2010 IP
  5. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    #5
    css will solve it
     
    gapz101, Sep 27, 2010 IP
  6. Anthony1994

    Anthony1994 Member

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #6
    but wont it get confused like b4 if i use div class tags
     
    Anthony1994, Sep 27, 2010 IP
  7. Anthony1994

    Anthony1994 Member

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #7
    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 />");}
     
    Anthony1994, Sep 27, 2010 IP
  8. Anthony1994

    Anthony1994 Member

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #8
    WIll rep if u tell me!
     
    Anthony1994, Sep 27, 2010 IP