benaust Posted October 27, 2008 Share Posted October 27, 2008 Hi there guys I am a bit lost here, if one could say, How do you print table from mysql. I have around 100 records that appear in table and like to divide them when printing them on the paper. Could someone help me out please? Link to comment https://forums.phpfreaks.com/topic/130265-printing-dynamic-tables/ Share on other sites More sharing options...
DeanWhitehouse Posted October 27, 2008 Share Posted October 27, 2008 <?php //connect to the db $sql = "SELECT * FROM tablename"; $sql = mysql_query($sql); while($rows = mysql_fetch_assoc($sql)) { echo $rows['row_name']."<br>"; } ?> Link to comment https://forums.phpfreaks.com/topic/130265-printing-dynamic-tables/#findComment-675541 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.