Announcement

Collapse
No announcement yet.

Parse error cant figure out what I am missing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Parse error cant figure out what I am missing

    http://mustangevolution.com/forum/vbgarage.php?

    ^ see that link for the error I am getting.

    This is the code that I have in that area:

    PHP Code:
    if ($_REQUEST['do'] == 'view')
    {
      
    globalize($_REQUEST, array('id' => INT));

      
    $result_data $DB_site->query("
        SELECT garage_detail.*,user.username FROM " 
    TABLE_PREFIX "garage_detail left join user on garage_detail.userid = user.userid WHERE garage_detail.id = $id LIMIT 1
      "
    );

      
    $ratingq $DB_site->query("select count(*) as cnt, sum(rating) as rating from garage_ratings where garageid = $id ");
      
    $rating $DB_site->fetch_Array($ratingq);

    ')  for ($i=1; $rating[rating] % 5; i++) {
      $stars .= "<img src=images/rating/leftgold.gif border=0 hspace=0><img src=images/rating/rightgold.gif border=0 hspace=0 >";
      }

      $data = $DB_site->fetch_Array($result_data);

      $data['
    comments'] = parse_bbcode2($data['comments'],'0','0','1','1');
      $data['
    currentmods'] = parse_bbcode2($data['currentmods'],'0','0','1','1');
      $data['
    plannedmods'] = parse_bbcode2($data['plannedmods'],'0','0','1','1');

      $result_image = $DB_site->query("
        SELECT id,caption FROM " . TABLE_PREFIX . "garage_images WHERE garageid = $id
      ");

      $user = fetch_userinfo($data['
    userid']);

      $count = 0;

      while ($image = $DB_site->fetch_Array($result_image))
      {
        eval('
    $imagebits .= "' . fetch_template('vbgarage_imagebits') . '";');
        $count++;
      } 
    This is line 289 out of that bit of code

    PHP Code:
    $data['comments'] = parse_bbcode2($data['comments'],'0','0','1','1'); 
    What am I missing?

  • #2
    What does that ') do in
    Code:
     ')  for ($i=1; $rating[rating] % 5; i++) {
    ?!
    That's the end of that!

    Comment


    • #3
      I dont know but when i take it out it doesnt work either.

      A friend wrote the code but he isnt around right now to fix it

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X