I need a very simple script to show visitors to my page my upcoming events.
On the front end I need a php script that will read from a mysql database and show all upcoming scheduled classes. It should not show classes who's start date has already passed. This script will be inserted into a table in my index.html page and show up as an "Upcoming Events" module.
On the backend I need an interface that will allow me to input, edit or delete all relevant class information (detailed below). This interface should have a password control.
I'll also need a script to create the mysql database structure (I'll create the database itself).
Each record type should have it's own CSS tag so that its appearance can be controlled via the sites CSS file.
Class information:
Title
Start Date
Start Time
Brief Description (small text box)
Full Description (large text box)
Link (clicked to go to the buy page)
I'm not a programmer (at all) but know that this is all pretty simple stuff. If anyone could show me the way, I'd sure appreciate it! I need this kind of quick.
CREATE TABLE `Events` (
`event_id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`title` VARCHAR( 100 ) NOT NULL ,
`start_date` DATE NOT NULL ,
`start_time` TIME NOT NULL ,
`brief_desc` VARCHAR( 255 ) NOT NULL ,
`full_desc` TEXT NOT NULL ,
`link` VARCHAR( 255 ) NOT NULL
) ENGINE = MYISAM ;