"."query failed!: " . $str ."
"; echo "
"."mysql error: " . !$ms?mysql_error():mssql_get_last_message() ."
"; } return $result; } open_database(); if ($_SESSION[voted]!="yes") { if ($vote=="yes") { $result=mysql_query("update knowme set yes=yes+1"); } if ($vote=="no") { $result=mysql_query("update knowme set no=no+1"); } } else { $already_voted="yes"; } $yes=query_all("select `yes` from knowme"); $yes_val=$yes[0]["yes"]; $no=query_all("select `no` from knowme"); $no_val=$no[0]["no"]; $total=$yes_val+$no_val; $yes_percent=floor($yes_val/($total/100)); $no_percent=100-$yes_percent; ?> do.you.know.me............................................................................................................................................................ "; if ($_GET[vote]=="yes") echo "alert(\"you know me!\");"; if ($_GET[vote]=="no") echo "alert(\"you don't know me!\");"; echo ""; } if ($result) { $already_voted="yes"; $_SESSION[voted]="yes"; $_SESSION[vote]=$vote; } ?>
style="cursor:hand" onClick="document.location.href='?vote=yes'" onmouseout="this.src='yes.gif'" onMouseover="this.src='yes_o.gif'" src="yes.gif" name="yes" width="43" height="18" id="yes"> style="cursor:hand" onClick="document.location.href='?vote=no'" onMouseover="this.src='no_o.gif'" onmouseout="this.src='no.gif'" src="no.gif" name="no" width="29" height="18" id="no">
  %   %
 
tick - beeldende media not suitable for work