prova con
if($count > 0){
print "<script language=\"javascript\">alert('You have already voted!')</script>";
}
oppure
if($count > 0){
echo "<script language=\"javascript\">alert('You have already voted!')</script>";
}
prova con
if($count > 0){
print "<script language=\"javascript\">alert('You have already voted!')</script>";
}
oppure
if($count > 0){
echo "<script language=\"javascript\">alert('You have already voted!')</script>";
}