PHP Classes

File: test_poll.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Ilir Fekaj  >  Simple Mini Poll  >  test_poll.php  >  Download  
File: test_poll.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: 11 years ago
Size: 881 bytes


Class file image Download
(E_ALL); // when you finish testing you should change this to E_NONE

include_once ("miniPoll.class.php");
include_once (

$connection = mysql_connect ($host, $user, $pass) or die ("Unable to connect");
mysql_select_db ($db) or die ("Unable to select database");


<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<title>Mini Poll Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="poll.css" rel="stylesheet" type="text/css" />
// this is all you need :)

$test = new miniPoll;