
PHP Advanced Poling system 2.10 - Install 

System requirements
1. You must have PHP 3 or 4 installed and able to recognize the file extension php3 as a php file.
	a. if you do not have php installed to recognize the .php3 file extension you will need to rename
	   all of the files to end in .php or .phtml or what ever you have it set up to use. then
	   change all of the forms in the files to find the new extensions.
2. You must have MySQL installed or a MySQL compatible database.
	Note: i have not tested this with any other database but in theory it should work.	   
3. You must of course have some kind of web server.
4. All of the above must be working.



Installing:

1. Extract the file into one dir.
2. Import av_pole.sql into your database either by loading it or simply copy past.
3. Edit the av_pole.inc file to include your database login, password and database name.
4. Make any graphic changes you like.
	a.table color
	b.table size
	c. font size
	d. font color.
5. if you would like to change the colors for the graph use colortest.php from the admin dir
   to test your colors.	
4. load admin\index.php in a browser.


Updating.
	if you are going from a previous version of Av-pole to this version you will need the 
following files.
av_pole.inc - addeds new information for the improved graphics
pole.php    - adds support for the improved graphics
pole_in.php - addes the set cookie
pole_results.php - adds a distinct to the select to prevent selecting dup ip's (you will  notice a change in your results from the old version becouse if anyone did vote sevral times there ip will be in there sevral times.  This new select will only consider one vote by them per pole) also includes improved graph of the results.

Possible problems

if you get a message something like Warning: 0 is not a MySQL result index in with a file name.  
Check av_pole.inc and make sure that you have put in the correct user name,password and database to
connect to MySQL. and check to be sure that you uploaded all tables to your database the 
tables are in links.sql 

Running php-advanced pole

from the admin dir run the index.php page and create some pole masters or questions for you poles. once you have created a question you will need to create some answers for your users to respond to. click on the create answers for "your question". by default you may create 3 answers but this does not prevent you in any way from going back into the link again and creating more answers.

your users run copy the code from pole.php to display your poles where ever you like. the results of the voting is displayed in pole_results.php.


if you come across any problems please contact me at kill-9@kill-9.dk.


Note: When a user votes if for some reason it still doesnot return to the page where
      the user came from but goes some where else by mistake add the folowing line
      under the <?php in pole_in.php and email kill-9@kill-9.dk
       
      $file="the_name_of_file_you_want_to_return_to.php";
      
      the above like should fix the problem for you. for some reason $php_self isnt
      working on every system.
      
      This bug should be fixed in version 2.02 of php-avpole
      
      
version 2.10 note.  
	Some one may atempt to vote more then one time.  If they have cookies off. And there ip is the same as the ip the voted with before it will not be counted.
	There is still a problem if someone has cookies turned off and they connect with a difrent ip there vote will be included again.
	
	But i am hoping that having the cookie will at least help avoid vote cheating.  