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? Quote 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>"; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/130265-printing-dynamic-tables/#findComment-675541 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.