SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard co.ador's Avatar
    Join Date
    Apr 2009
    Posts
    1,054
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help me find a parse error

    Parse error: parse error in C:\wamp\www\store\shoes\yourshoe.php on line 199

    The line 199 is the last line...

    PHP Code:
       <?php  $query "SELECT caridadkb.shoename, caridadkb.price, caridadkb.moreinfo, caridadkb.airjordan_id
    FROM caridadkb
    WHERE
    airjordan_id= " 
    . (int) $_GET['menu']; 
    echo 
    $query;
    $result mysql_query($query$connection);
     while (
    $content mysql_fetch_array($result)) {
      echo 
    "
        <div id=\"shoeinfo1\">
            <h2 class=\"infohead\">" 
    $content['shoename'] . "</h2>
            <div class=\"video\"><img class=\"line\" src=\"images/videoplayer.jpg\" alt=\"videoplayer\" width=\"100%\" height=\"100%\"></div>

            <h5> Rate:</h5><h4>
            
            
            "
    ;
            
            
            
    $ratingData Rating::OutputRating($content['shoename']);
          
          if (
    Error::HasErrors())
          {
            echo 
    Error::ShowErrorMessages();
            
    Error::ClearErrors();
          }
          else
          {
            echo 
    $ratingData;
          }  
          echo
    "</h4>
            <h3>Prosedimiento:</h3>
            <p>Womens fashion shoes with higher 
            heels generally have pre-made, thin,
            flexible, leather or resin rubber fitted
            soles, made using the bottom pattern
            created from the last. Two shapes of
            sole are made this way, one for a Louis
            heel, and the other for a Knock-on type. </p> 
        </div>"
    ;
        
    ?>

    </div>

  2. #2
    SitePoint Wizard co.ador's Avatar
    Join Date
    Apr 2009
    Posts
    1,054
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    a missing bracket guys, thank you never mind

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Probably need to close your while loop with a }

    Btw- when you have an elusive parse error like this, try ripping chunks of code out until you have simplified the problem to some small area. Much easier to spot it then.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •