html rending of a prtion of data

Posted by pradeep on Stack Overflow See other posts from Stack Overflow or by pradeep
Published on 2010-06-09T05:17:14Z Indexed on 2010/06/09 5:22 UTC
Read the original article Hit count: 137

Filed under:
|

Hi, I have a section like

$myresult .= '<tbody>';

/*start printing the table wth feature and ratings */
for ($i = 1 ; $i < $numProperties; $i++){

if($master_rating_properties['rating'.$i.'_name']){

$myresult .= '<tr>';

$myresult .= '<td width=\'22%\'>';

$indfeature = 0;
$indfeature = $row_product['property'.$i.'_avg'];
$myresult .= $master_rating_properties['rating'.$i.'_name'].' ( '.$indfeature .')';

$myresult .= '</td>';

$myresult .= '<td colspan=\'0\' width=\'38%\' >';

$tocheck = $indfeature;

for($k = 0.5; $k <= 10.0; $k+=0.5){

$tocheck = roundOff($tocheck);
if(($tocheck) == $k)
{ $chk = "checked"; }

else


{ $chk = ""; }

$myresult .= '<input class=\'star {split:2}\' type=\'radio\' name=\'drating'.$i.'\' id=\'drating'.$i.''.$k.'\' value=\''. $k .'\'  '.$chk.'  title=\''. $k.' out of 10 \' disabled \'/>';


}

/* for k loop end */
/* added later ,was missing */
$myresult .= '</td>';
$myresult .= '</tr>';
}

/* end if loop */

}
/* end i for loop */

$myresult .= '</tbody>';
/* end tbody */    

it works fine like printing the 10 stars(radio buttons) horizontally . but many a time all the 10 stars turn vertical.and after few browser refreshes it comes back to horizontal position. any idea .y this is causing problem? does tbody tag cause some problem.

© Stack Overflow or respective owner

Related posts about html

Related posts about rendering