Can PHP really create webpages from data in MYSQL database??

Discussion in 'PHP' started by Frankenfine, Apr 1, 2010.

  1. #1
    I have an MYSQL database with all the content and image links etc of 5,000 webpages. Each record contains fields and content for a single webpage.

    title
    description
    keywords
    header1,2,3, etc.
    paragraph 1, 2, 3 etc
    image link 1, 2, 3, etc
    etc

    Is there a way to use PHP to get this info from the database and create a php page?
     
    Frankenfine, Apr 1, 2010 IP
  2. krishmk

    krishmk Well-Known Member

    Messages:
    1,376
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    185
    #2
    Yes you can write PHP code to grab the data from MySql database and print the output in html format (with css styling etc. to match your site template).
     
    krishmk, Apr 1, 2010 IP
  3. Frankenfine

    Frankenfine Peon

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    great! Are there templates available for this? How do I learn more? :cool:
     
    Frankenfine, Apr 2, 2010 IP
  4. ThomasTwen

    ThomasTwen Peon

    Messages:
    113
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I don't think there is a template available for this; but the task itself is quite easy. You can hire someone for a few dollars - or google yourself a "PHP MySQL tutorial".
     
    ThomasTwen, Apr 2, 2010 IP
  5. Frankenfine

    Frankenfine Peon

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you!:cool:
     
    Frankenfine, Apr 2, 2010 IP
  6. Brandon.Add.On

    Brandon.Add.On Peon

    Messages:
    178
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You could try sites like tizag or w3schools which are perfect resources for beginners.
     
    Brandon.Add.On, Apr 3, 2010 IP
  7. subdivisions

    subdivisions Well-Known Member

    Messages:
    1,021
    Likes Received:
    40
    Best Answers:
    1
    Trophy Points:
    145
    #7
    If you have Adobe Dreamweaver, it's got a GUI for PHP and MySQL page creation. The code it generates is really messy, though, so it's probably better to learn it by hand.
     
    subdivisions, Apr 3, 2010 IP