Location: PHPKode > projects > Basic Announce > Readme.txt
#name:Basic Website Announcement PHP Script#
#Built and coded By:Harry Smith            #
#Support:hide@address.com     #
#Used By: Bull Web Host bullwebhost.co.uk  #
############################################


Basic Website Announcement PHP Script Uses a MySql Database to store your announcements
and to display them on your website.

The Installion process is quick and simple.

1.Create a database and run the followung MySql query on your newly created Database:

CREATE TABLE IF NOT EXISTS `demo` (
  `ID` int(11) NOT NULL,
  `Announcement` text NOT NULL,
  `Submitted` int(11) NOT NULL,
  KEY `ID` (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


2. Upload the news folder to the root of your website or where your webpage is that will display
your news.

Before you upload the news folder you need to edit two of the files so go and open up the following
files and make these edits

Edit 1. Open Insert.php and on the second 2 line you will find the following:

$con = mysql_connect("Database Server Address","UserName","Password");

Change the ("Database Server Address") to the address you use to run off MySql Databases
Change the ("UserName") to your Database login Username
Change the ("Password") to your Database Password

Stay in the Insert file and find the following:

mysql_select_db("Database", $con);

It will be on the 8th line

Change the ("Database") to your database name you created earlier.

Now save and close the Insert.php file and apply the next edit.

Edit 2. open the news.php and on the Second and Third lines you will find the following you need
to edit:

mysql_connect("Database Server Address","UserName","Password") or die(mysql_error());
mysql_select_db("Database") or die(mysql_error());

Change the ("Database Server Address") to the address you use to run off MySql Databases
Change the ("UserName") to your Database login Username
Change the ("Password") to your Database Password

Stay in the Insert file and find the following:

mysql_select_db("Database", $con);

It will be on the 8th line

Change the ("Database") to your database name you created earlier.

Now save and close the news.php and upload the whole news folder not just the files.


3. The Include command will help display the news on your website 
add the following code where you want the news to be displayed:

<?
include("news/news.php")
?>

The index.php file is the form you use to submit your news with a Submitted By: field 
which says who submitted the news e.g Webmaster,admin,owner etc do not allow regular users access
to this file as they can still use it.


The delete.php and delete_ac.php needs the database connection settings aswell

Thank you for downloading my Basic Website Announcement PHP Script hope it helps you.

You can supply a download link for my script as long as you leave all the data in this readme as is.
Return current item: Basic Announce