Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Development (http://www.go4expert.com/forums/web-development-forum/)
-   -   Inquiry on website data (http://www.go4expert.com/forums/inquiry-website-data-t16976/)

himig_laya 19Apr2009 19:20

Inquiry on website data
 
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

mclarke1987 8May2009 02:19

Re: Inquiry on website data
 
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.


All times are GMT +5.5. The time now is 06:35.