<style>.columnone {float: left;width: 10%;padding: 10px;margin-bottom: 23px;text-align: justify;}.columntwo {float: left;width: 10%;padding: 10px;margin-bottom: 23px;text-align: justify;}.columnthree {float: left;width: 10%;padding: 10px;margin-bottom: 23px;text-align: justify;}.columnfour {float: left;width: 10%;padding: 10px;margin-bottom: 23px;text-align: justify;}.columnfive {float: left;width: 10%;padding: 10px;margin-bottom: 23px;text-align: justify;}</style><?phpinclude(\"mysql_connect.php\");echo \"<div class='columnone'>id</div> <div class='columntwo'>forum</div><div class='columnthree'>topics</div><div class='columnfour'>post</div><div class='columnfive'>created on</div>\";$sql = mysql_query(\"SELECT * FROM category ORDER BY cat_id \");while($row = mysql_fetch_array($sql)) {$topics = mysql_num_rows(mysql_query(\"SELECT * FROM topics WHERE cat_id='\".$row['cat_id'].\"'\"));$replies = mysql_num_rows(mysql_query(\"SELECT * FROM replies WHERE cat_id='\".$row['cat_id'].\"'\"));echo\"<div class=\\"columnone\\">\".$row['cat_id'].\"</div><div class=\\"columntwo\\"><a href='topic.php?id=\".$row['cat_id'].\"'>\".htmlentities($row['category_topic']).\"</a></div><div class=\\"columnthree\\">\".$topics.\"</div><div class=\\"columnfour\\">\".$replies.\"</div><div class=\\"columnfive\\">\".date(\"j/n - y\",$row['created']).\"</div>\";}echo \"</table>\";mysql_close($con);?>
i want to use div to get table like effect but it is not producing it....where is the prob.?