Hello everyone, I am working on a new website and so far everything has been going fine. I decided that I would add a News section to the site that will inform my members about what is going on. I have created a page in my Administrative section where there is a simple textbox form and a submit button. The idea behind this is that the admin types in some site updates and clicks submit and the news will be posted to the user-side page. The user-side page, "news.php" is where the news/updates will show up. I need help from members here as I don't know how I should do this. I was thinking about using a mysql database so I created one but I was stumped on how to use it. Help of any kind is greatly appreciated!
I assume you have already created the required MySql database tables. Now you need 2 functions... #1 for storing the News Data from Admin Panel to DB. #2 - For retrieving data from DB table to news.php page. You can find php/Mysql Tutorial @ w3schools.com For Data Insertion check this: http://w3schools.com/php/php_mysql_insert.asp For Data Retrieval check this: http://w3schools.com/php/php_mysql_select.asp
Thank you for the quick reply krishmk. The w3schools tutorials were exactly what i needed, thank you so much.