PDA

View Full Version : Php Voting Polls


hebisr
12-03-2002, 04:15 AM
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?

bcarl314
12-03-2002, 11:16 AM
What's the error message you're getting? Parse error? Something else?

hebisr
12-03-2002, 06:09 PM
I am getting the the http 404 error upon testing