make a folder on your web server and put these files in it

set up your database and try and make a table with php myadmin...
once you make a table, don't forget to add a row of data to your table.
make a table called switch with 2 fields

field: ID
type: INT
Extra: auto_increment
click on the key icon to make ID PRIMARY

and

field: state
type: INT
length/values:0

then

go to the INSERT tab
and insert values for ID and state in row 1
ID value:1
state value:0


//replace the database login/password information with your own
login.php

//you do not need to touch this file. it helps for the Ajax.request call in switch.js
prototype.js  

//these are the files that actually do shit. 
style.css
flipSwitch.php
drawSignal.php
switch.html
switch.js	

try to go in and make changes and figure out how things are working.





