Displaying nsews entry from MySQL properly into html Tables?
Posted: Sat Oct 26, 2002 9:22 am
Hey Guys (and girls),
I recently just began using MySQL, and I guess you could say I'm still in the "experimenting" stages. I'm currently trying to create a news script where the two admins of our site to be (FLballer.com) can go to something like /admin/postnews.php or something of that sort to post the news, and then have the news be displayed on the main page. I've got a little bit of knowledge on how to pull information out of a database, but I want to put it nicely into HTML tables.
So here are my questions:
1) If I'm pulling multiple entries from a database, must i create and echo the HTML table in the "while(){}" loop or can I create the html table outside of the PHP script and insert the information into by putting like..
<?php echo "$blah"; ?> into a td or something?
Hehe. I hope you guys can understand what I'm trying to ask
Take it easy, - Tom
I recently just began using MySQL, and I guess you could say I'm still in the "experimenting" stages. I'm currently trying to create a news script where the two admins of our site to be (FLballer.com) can go to something like /admin/postnews.php or something of that sort to post the news, and then have the news be displayed on the main page. I've got a little bit of knowledge on how to pull information out of a database, but I want to put it nicely into HTML tables.
So here are my questions:
1) If I'm pulling multiple entries from a database, must i create and echo the HTML table in the "while(){}" loop or can I create the html table outside of the PHP script and insert the information into by putting like..
<?php echo "$blah"; ?> into a td or something?
Hehe. I hope you guys can understand what I'm trying to ask
Take it easy, - Tom