Location: PHPKode > projects > SSEP - Election Simulation System > ssep-0.2/index.php


$sql="select id,candidate from people where candidate = '0'";
if(!empty($row['id'])) $idmysql=$row['id'];
else {
$sql="INSERT INTO people( candidate ) value('0')";
if(!$query) exit("Error: MySQL SQL problem");
$sql="select id,candidate from people where candidate = '0'";


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="estru.css" rel="stylesheet" type="text/css">

<body bgcolor="#E5E5E5">
<div align="center">
  <table width="790" border="2" cellpadding="0" cellspacing="0" bordercolor="#666666" bgcolor="#FFFFFF">
      <td><table width="790" border="0" cellspacing="0" cellpadding="0">
            <td bgcolor="#FFFFFF">
              <h3><font color="#666666" face="Arial, Helvetica, sans-serif"><br>
                Election Simulation System</font></h3>
              <p align=justify><font size="2" face="Arial, Helvetica, sans-serif">
The goal of this project is to simulate an election with two candidates. <br>It was developed by Adolfo Ferreira and Vitor Vordini for FECAP university @ Sao Paulo / Brasil.<br>
See Election Stats <a href=stats.php>here</a>.
              <p align=justify><font size="2" face="Arial, Helvetica, sans-serif">If you do want participate of this election, fill your id              .</font></p>
              <form action=eleger.php method=post>
DEMO ID: <?=$idmysql?> 
                <input size=10 type=text name=codigo maxlength=8>
<input type=submit value=Go>
<input type=reset value=Clean>

<tr><td align=Center>
<font size="2" face="Arial, Helvetica, sans-serif">
<a href=WARNING.txt>PLEASE SEE THE NOTE</a><br>
SSEP version <?=$version?>, Copyright (C) 2007 Adolfo Bravo Ferreira <adolfo.ferreira at hotmail.com> & Vitor Bordini <br>
This is free software, and you are welcome to redistribute it under certain conditions.
Return current item: SSEP - Election Simulation System