"; if(isset($_GET['vote'])) { require_once('mysqlvalues.inc.php'); require_once('mysqlfunc.inc.php'); $ids=explode('|', str_replace(',','|', $_GET[vote])); open_conn(); mysql_query("UPDATE Models SET Wins=Wins+1 WHERE ID='$ids[0]'"); mysql_query("UPDATE Models SET Loses=Loses+1 WHERE ID='$ids[1]'"); $Model1=mysql_query("SELECT ID, Name, Wins, Loses, Draws, Thumbnail, (Wins) / (Wins+Loses) AS WinPercent FROM Models WHERE ID='$ids[0]' LIMIT 1"); $Model1=mysql_fetch_assoc($Model1); $WinPercent1=round(($Model1['Wins'] / ($Model1['Wins']+$Model1['Loses'])) * 100, 2); $Model2=mysql_query("SELECT ID, Name, Wins, Loses, Draws, Thumbnail, (Wins) / (Wins+Loses) AS WinPercent FROM Models WHERE ID='$ids[1]' LIMIT 1"); $Model2=mysql_fetch_assoc($Model2); $WinPercent2=round(($Model2['Wins'] / ($Model2['Wins']+$Model2['Loses'])) * 100, 2); close_conn(); $PreviousResults="

\"winner\" \"$Model1[Name]\"
$Model1[Name] [$WinPercent1%]

\"loser\"
\"$Model2[Name]\"
$Model2[Name] [$WinPercent2%]

\"Click

"; unset($Model1, $Model2, $ids); } if(isset($_GET['draw'])) { require_once('mysqlvalues.inc.php'); require_once('mysqlfunc.inc.php'); $ids=explode('|', str_replace(',','|', $_GET[draw])); open_conn(); mysql_query("UPDATE Models SET Draws=Draws+1 WHERE ID='$ids[0]' || ID='$ids[1]' LIMIT 2"); $Model1=mysql_query("SELECT ID, Name, Wins, Loses, Draws, Thumbnail, (Wins) / (Wins+Loses) AS WinPercent FROM Models WHERE ID='$ids[0]' LIMIT 1"); $Model1=mysql_fetch_assoc($Model1); $WinPercent1=round(($Model1['Wins'] / ($Model1['Wins']+$Model1['Loses'])) * 100, 2); $Model2=mysql_query("SELECT ID, Name, Wins, Loses, Draws, Thumbnail, (Wins) / (Wins+Loses) AS WinPercent FROM Models WHERE ID='$ids[1]' LIMIT 1"); $Model2=mysql_fetch_assoc($Model2); $WinPercent2=round(($Model2['Wins'] / ($Model2['Wins']+$Model2['Loses'])) * 100, 2); close_conn(); $PreviousResults="

\"results\" \"$Model1[Name]\"
$Model1[Name] [$WinPercent1%]

\"draw\"
\"$Model2[Name]\"
$Model2[Name] [$WinPercent2%]

\"Click

"; unset($Model1, $Model2, $ids); } ?> Leichic.it Contest - Partecipa, gioca!

$row[LinkText]

";}else{$Url[]='';} } echo""; close_conn(); ?>

 
VOTA ADESSO !
\"$Name[0]\"
$Name[0] $Url[0]
\"vs\" \"$Name[1]\"
$Name[1] $Url[1]

">Non so decidere