Php-mysql Course

This is a Voting Poll Script, created with Ajax technology, JavaScript and PHP (with OOP).
The script is free, without any support or assistance. You can use it, modify, and publish it freely.

Features

- The Voting Poll System has Admin control page. In the Admin page you can Add /Reset /Delete polls, see poll code (that must be added in web page), and poll data (started date-time, total number of votes, number of votes, percentages and last date-time voted of each poll item).
- The script can be used in ".html" and ".php" files, but the server must run PHP.
- Data can be saved in TXT files on the server (in JSON format), or in a MySQL database (with PHP PDO). By default, the script saves data in TXT files.
- Works also in browsers with JavaScript disabled.
- Can be added multiple Voting Polls in a web page.
- If you have a register /login script in your web site, you can set this Voting Poll System Script to allow only the logged users to vote. By default, each visitor can vote a poll a single time only.
- The script can be easily used /translated in other languages, without affecting the main code of the script. Supports diacritics and other characters specific to each language.
- The code is valid XHTML, and the poll elements are displayed relatively to browser resolution, and window size.

- The script contains two designs /styles for poll data displayed after voting (click on these images).
Voting Poll Style 1 Voting Poll Style 1

More details, instalation and settings in the "readme.html" file in the script.

• To Download it, click: PHP-Ajax Voting Poll System script.

Bellow you can see Demo with two polls.
To see and test the Admin Page of this Voting Poll System, click: Admin Page.
This poll can be voted a single time only.
Vote this poll, started in: 26-Feb-2013

What is your age?

Voting Poll 2

This poll can be voted one time each day.
Vote this poll, started in: 26-Feb-2013

What fruit did you eat today?


• If your site usses "https" protocol for the URL address of the page in which you add the Polls, open the "admin.php" file (in "vpoll/" directory), and replace 'http' with 'https' at line 5.

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which HTML5 tag is indicated to be used as container for menu with navigation links in Web site?
<section> <nav> <article>
<nav><ul>
 <li><a href="http://coursesweb.net/css/" title="CSS Course">CSS Course</a></li>
 <li><a href="http://www.marplo.net/jocuri/" title="Flash Games">Flash Games</a></li>
</ul></nav>
Which CSS property shifts an item horizontally to the left or right of where it was?
text-align clear float
.some_class {
  width: 30%;
  float: left;
}
Click on the Math object method which returns x, rounded downwards to the nearest integer.
Math.ceil(x) Math.abs(x) Math.floor(x)
var num = 12.34567;
num = Math.floor(num);
alert(num);       // 12
Indicate the PHP function which returns the number of characters in string.
mb_strlen() count() stristr()
$str = "string with utf-8 chars åèö";
$nrchr = mb_strlen($str);
echo $nrchr;        // 30
Voting Poll System script PHP-AJAX

Last accessed pages

  1. Working with HTML attributes in PHP (13487)
  2. Using fadeIn and fadeOut (1570)
  3. JavaScript strip_tags and stripslashes (8661)
  4. jQuery Drag and Drop Rows between two similar Tables (12785)
  5. Select in MySQL, Output results in HTML Table (19323)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (207)
  2. Read Excel file data in PHP - PhpExcelReader (74)
  3. The Four Agreements (68)
  4. PHP Unzipper - Extract Zip, Rar Archives (66)
  5. The Mastery of Love (51)