Ok well I have been searching for a long time and have failed to find a news system that let the administrator login and then lets him post a new news article that will display at the top of the news list, pushing the rest down, and the extras onto a new page if there is too many. Pretty much, one that works like RuneScape's News System.
-- Edit the $con variable to the connection information. (host, username, password)
-- Change the database name in the function mysql_select_db.
-- Change the table name in the mysql_query.
-- Change where it says by ORDER BY age. Replace that with ORDER BY id DESC
-- Change the $row[]; variables to your row names! (E.G: echo $row['title']
You can make this script more advanced and advanced.
By the way: Make sure you put that PHP Script on a PHP Supported server and the file extension of that file to .php
EDIT: Ooops sorry, I didn't realize you posted this in the VBScript section. My bad. I thought you wanted it done in any language. Sorry, Dan.
You need to make a MySQL database,
make a table inside it called "news" (without the speech marks).
You will need to make 4 rows.
1) id - int(11) auto imcremit (sorry for spelling) and primary key
2) title - text
3) content - text
4) date - text
Ok then click Save or something.
Now you need to pull it from the database into a PHP script.
Qouted from [Only registered and activated users can see links. ] --
-- Edit the $con variable to the connection information. (host, username, password)
-- Change the database name in the function mysql_select_db.
-- Change the table name in the mysql_query.
-- Change where it says by ORDER BY age. Replace that with ORDER BY id DESC
-- Change the $row[]; variables to your row names! (E.G: echo $row['title']
You can make this script more advanced and advanced.
By the way: Make sure you put that PHP Script on a PHP Supported server and the file extension of that file to .php
EDIT: Ooops sorry, I didn't realize you posted this in the VBScript section. My bad. I thought you wanted it done in any language. Sorry, Dan.
hehe lol i dont get vbscript Lol thanks for the system though ill add it to cutenews =]