PHP Classes

File: test_poll_admin.php

Recommend this page to a friend!
  Classes of Ilir Fekaj   Simple Mini Poll   test_poll_admin.php   Download  
File: test_poll_admin.php
Role: Example script
Content type: text/plain
Description: Test script
Class: Simple Mini Poll
Online poll system with administration interface
Author: By
Last change:
Date: 20 years ago
Size: 1,175 bytes


Class file image Download

include_once (
include_once (

$connection = mysql_connect ($host, $user, $pass) or die ("Unable to connect");
mysql_select_db ($db) or die ("Unable to select database");
echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<title>Mini Poll Admin Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="poll.css" rel="stylesheet" type="text/css" />
= new miniPollAdmin;


if (isset(
$_GET['opt'])) {
$opt = $_GET['opt'];
$pollid = $_GET['pollid'];
    if (
$opt == 'activate') {
    if (
$opt == 'delete') {


"<br />";
if (isset(
$_GET['q'])) {
$pollname = $_GET['pollname'];
$q = $_GET['q'];
$test->createPoll($pollname, $q);