![]() |
|
|
This tutorial will take you through the process of creating a basic news management system in a step by step manner. If you intend to run the code on your own computer you will need IIS 4 or above or PWS working and running. Have a look at our tutorials on 'Installation' if you need to install either of these. Alternatively if you intend to run the code on your hosting company's server make sure they support ASP. You will also need a copy of Microsoft Access. The files we are using are: 1) Microsoft Access database 'News.mdb'. Our first step is to create a folder called 'news' which will house all our files. You will also need to create two subfolders 'admin' and 'db'. The admin folder will hold the admin files ('login.asp', 'admin_navigation.asp', 'add_news.asp', 'insert_news.asp', 'del_all.asp', 'delete_record.asp', 'edit_all.asp', 'edit_record.asp, 'update_record.asp') which only the administrator will be able to access and the 'db' folder will house the database. When you installed PWS or IIS an 'Inetpub' folder should have been created on your hard drive with the sub folder 'wwwroot'. Locate this folder i.e. 'wwwroot' (the default is C:\inetpub\wwwroot) and inside it create a new folder called 'news'. If you intend to simply upload the code to your webspace on your hosting company's server then you can save the code anywhere though just keep the file structure as is. First let's create an Access 2000 database called 'news.mdb' Click Start - Programs- Microsoft Access and select the 'Blank Access Database' option and then click ok. ![]() You will be prompted as to what to call the database and where to
save it. Call the database 'news.mdb' and save it in the folder
'db' that we just created.
Now we are going to create the fields of the table 'tblNews' and select their datatypes . There will be 4 fields. ![]() The 'tblNews' table fields:
Now that we have created our 'news.mdb' database make sure you populate the table 'tblNews' with some records. I have just filled in 3 records though you can fill in as many as you like. Try to fill in about 5 or 6. ![]() Having created the database we will now create the password protected login page for the administration area of the system.
Membership Software Integrates with PayPal
Site developed by Michael Wall - Web Design Belfast N.Ireland. |
|