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?> </div>
<div>(<span dir="ltr">$<?php echo $row->price?></span><? echo M ?>')</div> </a>
<?php
$link = ob_get_contents();
ob_end_clean();
return $link;
}
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".
This code snippet is a very interesting set of tests!
Parser seems ok, now.
Thanks for your report.
Pierre.