// ------------------------------------------------------------------------- //
//                              SONDAGE 2.1                                  //
// ------------------------------------------------------------------------- //
// Copyright (C) 2000 - Alexandre Moles                                      //
// ------------------------------------------------------------------------- //
// Web:   www.master.ht.st                                                   //
// Email: master@ht.st                                                       //
// ------------------------------------------------------------------------- //
// Ce programme est libre, vous pouvez le modifier                           //
// ------------------------------------------------------------------------- //


//---------INSTALLATION-----------------------------// 

In MySQL create this tables: 

CREATE TABLE sond_admin (
   sondID int(10) NOT NULL auto_increment,
   question char(100) NOT NULL,
   nbVotants int(10) DEFAULT '0' NOT NULL,
   PRIMARY KEY (sondID)
);

CREATE TABLE sond_data (
   sondID int(11) DEFAULT '0' NOT NULL,
   optionText char(50) NOT NULL,
   optionID int(11) DEFAULT '0' NOT NULL,
   optionNB int(11) DEFAULT '0' NOT NULL
);

In the inc/param.inc.php3 file inform your parameters of connection, the name of the table and the chosen
image to show the bar results. 

Insert the code 
	require "inc/question.inc.php3"; 
in the file where you want to be able to vote. 

Since the file admin/sondage_admin.php3, you manage all your polls: creation and deletion. It files should
be protected necessarily thanks to a .htaccess for example (example: http://www.phpfrance.com/tutorials/index.php?id=50).  
 

