rendered paste body<? require_once('core/secure.php'); include('core/db.php'); $connection = mysql_connect($hostname,$username,$password); mysql_select_db($databasename); $query = "select name from category ORDER by catid"; if ( $rs = mysql_query($query) ) {?><html> <head> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <link rel=stylesheet href="style/style.css" /> </head> <body> <table width=100%" border="0" cellpadding="0" cellspacing="0" class="header"> <tr> <td align="center"><p class="pagetitle">Section Title</p></td> </tr> </table> <br /><br /><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="15" height="30"><img src="i/section_top_left.gif" /></td> <td width="100%" background="i/section_top_bg.gif" valign="bottom" align="center"> <div style="font-family:verdana;font-size:10pt;color:#5D729B"><b>Area Title</b></div> </td> <td width="1" height="30"><img src="i/section_top_right.gif" /></td> </tr> <tr> <td width="15" height="4"><img src="i/section_top_left2.gif" /></td> <td background="i/section_top_bg2.gif"></td> <td width="15" height="4"><img src="i/section_top_right2.gif" /></td> </tr> <tr> <td colspan="3"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="7" background="i/section_middle_left.gif"></td> <td> <table width="100%" border="0" cellpadding="5" cellspacing="0"><?$i = 0;$len = @mysql_num_rows($rs);$cols = 5;while ( $i < $len ){echo "<tr>";for ($x = 0; $x < $cols; $x++, $i++){if ( $row = mysql_fetch_array($rs, MYSQL_ASSOC) )echo "<td>". $row["name"] ." </td>";}echo "</tr>";}?> <tr> <td class="tdrow1" bgcolor="#FCFCFC" colspan="7" align="center"> <br /> </td> </tr> </table> </td> <td width="7" background="i/section_middle_right.gif"></td> </tr> </table> </td> </tr> </table> </body> </html>