I have a main page on my website and in an articles section I want to grab text from an SQL database and print it. There needs to be multiple articles. How would I read from the database and print multiple articles? Also how do I set up the table correctly and send data to it? There needs to be a time column (time it was posted), post id column (so the posts can be ordered from newest to oldest), and a message column that will hold the article.
Thanks for your help.
4 Replies - 955 Views - Last Post: 16 October 2012 - 11:34 AM
#1
MySQL - Setting up a table and printing text to a page
Posted 11 October 2012 - 08:50 PM
Replies To: MySQL - Setting up a table and printing text to a page
#2
Re: MySQL - Setting up a table and printing text to a page
Posted 12 October 2012 - 03:34 PM
Are you printing to the screen or printing to paper?
What code do you have so far?
What code do you have so far?
#3
Re: MySQL - Setting up a table and printing text to a page
Posted 15 October 2012 - 01:26 PM
Do you know any serverside languages like PHP?
What language is your index page coded in?
Did you write it?
What language is your index page coded in?
Did you write it?
#4
Re: MySQL - Setting up a table and printing text to a page
Posted 15 October 2012 - 01:37 PM
I'm wondering how these articles got into the database if you don't know how to get them back out.
#5
Re: MySQL - Setting up a table and printing text to a page
Posted 16 October 2012 - 11:34 AM
Sorry. I actually figured out how to do it. Thanks anyway.
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote






|