Menu

#270 ob_start breaks class browser

2.x
closed-fixed
Interface (114)
5
2014-01-07
2010-11-23
Anonymous
No

When using html in ob_start clas browser stops at the code.
Code snippet:
method getRow shows in class browser method getLinkPrice and all methods below it do not show

function getRow\($id\)\{
    $query ="select \*,pm.id as player\_id from player\_master as pm, club\_master as cm ";
    $query .="where pm.id='$id' and pm.club\_id = cm.id";
    $result=mysql\_query\($query\) or die\(mysql\_error\(\)\);
    $row=mysql\_fetch\_object\($result\);
    return $row;
\}
function getLinkPrice\($id,$row=''\)\{
    global $align;

    $row = player::getRow\($id\);
    ob\_start\(\);

?>
<a href="playerprofile.php?pid=<? echo $row->player_id; ?>" onclick="return popitup('playerprofile.php?pid=<? echo $row->player_id; ?>')">
<div style="float:<? echo $align?>" dir="ltr"><?php echo $row->player_name?>&nbsp;</div>
<div>(<span dir="ltr">$<?php echo $row->price?></span><? echo M ?>')</div> </a>
<?php
$link = ob_get_contents();
ob_end_clean();
return $link;
}

Discussion

  • Pierre Fauconnier

    Hi nobody,

    In fact the character which is breaking the class browser is a quote '
    > <? echo M ?>')</div> </a>

    Thanks for your report,
    --
    Pierre, currently working on the class browser with "Named Bookmarks".

     
  • Pierre Fauconnier

    • assigned_to: ursmaeder --> pf18387
    • milestone: 401585 --> 2.x
    • status: open --> open-accepted
     
  • Pierre Fauconnier

    This code snippet is a very interesting set of tests!

     
  • Pierre Fauconnier

    • status: open-accepted --> pending-fixed
     
  • Pierre Fauconnier

    Parser seems ok, now.
    Thanks for your report.

    Pierre.

     
  • Pierre Fauconnier

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.