Php Voting poll

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hebisr
Forum Newbie
Posts: 3
Joined: Sun Dec 01, 2002 7:15 pm

Php Voting poll

Post by hebisr »

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?
Post Reply