Hey guys
I am creating a voting system using My SQL and PHP
I created the Database db_polls
2 tables
My problem is adding this script:
The Switch statement
switch(@$HTTP_GET_VARS["method"])
{
case "ShowAdd":
GetNewPollDetails();
break;
case "AddFinal":
AddPoll();
break;
case "ShowDelete":
GetPollToDelete();
break;
case "DeleteFinal":
DeletePoll();
break;
default:
GetChoice();
}
I saved it in a text document as managepoll.php
location of file: C:\Program Files\Apache Group\Apache2\htdocs
Then to preview:
http://localhost/managepoll.php
(error)
What am I missing here?