1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Inquiry on website data

Discussion in 'Web Development' started by himig_laya, Apr 19, 2009.

  1. himig_laya

    himig_laya New Member

    Joined:
    Apr 19, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hello everybody.. i'm a newbie. i have basic background of html and very little of php. i made a website (news website) and i have a problem of having a database of my news articles. my question is: how can i make a database for the news articles so that i can minimize posting it manually (through html) every now and then?

    i hope to receive responses from you guys. you can e-mail me at: himig_laya@yahoo.com
     
  2. mclarke1987

    mclarke1987 New Member

    Joined:
    May 7, 2009
    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    0
    What you would need to do is setup a mysql database, create a table the posts. Just basic fields like, ID, Name, Content, Data/Time. Then you would want to pass the information using a query (index.php?news=3) you can use webfriendly urls later on first just get it working.

    Then to display specific items you would use $_GET['news'] to get the page id (in this case 3) and SELECT * WHERE ID = '3' for your query. This will pull up the record you want.

    If you want to talk more about it im on yahoo mclarke87poker. Although if your looking for a news site you may want to consider wordpress.
     
    shabbir likes this.

Share This Page