4 Replies - 2479 Views - Last Post: 16 October 2012 - 11:34 AM

#1 The_Programmer-  Icon User is offline

  • Death Scythe
  • member icon

Reputation: 24
  • View blog
  • Posts: 593
  • Joined: 24-October 11

MySQL - Setting up a table and printing text to a page

Posted 11 October 2012 - 08:50 PM

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.

Is This A Good Question/Topic? 0
  • +

Replies To: MySQL - Setting up a table and printing text to a page

#2 BenignDesign  Icon User is offline

  • holy shitin shishkebobs
  • member icon




Reputation: 6216
  • View blog
  • Posts: 10,731
  • Joined: 28-September 07

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?
Was This Post Helpful? 0
  • +
  • -

#3 laytonsdad  Icon User is offline

  • Cheese and Sprinkles
  • member icon

Reputation: 446
  • View blog
  • Posts: 1,906
  • Joined: 30-April 10

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?
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5382
  • View blog
  • Posts: 27,350
  • Joined: 10-May 07

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.
Was This Post Helpful? 0
  • +
  • -

#5 The_Programmer-  Icon User is offline

  • Death Scythe
  • member icon

Reputation: 24
  • View blog
  • Posts: 593
  • Joined: 24-October 11

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1