i'm glad you were the one who replied to me, since you were the one who advice me in how to do the top list.
i followed your advice and till now things are going ok, but i still can't vote, i think for now i'll forget the only 10 can be selected part, i just want to vote.
the script at the time is like this
<html>
<head>
<title>PHP - Mysql </title> </head>
<body>
<?php
$ligação=mysql_connect("localhost","","");
if (!$ligação) {
print ("problems connecting to Mysql server");
}
$sql="select * from movies order by votes desc";
$result = mysql_db_query ("omdb", $sql);
if ($result) {
print ("<table width=\"95%\" align=center border=2>");
print ("<tr><td width=\"10%\" bgcolor=\"CCCCCC\">SELECT</td><td width=\"50%\" bgcolor=\"CCCCCC\">TITLE</td><td width=\"10%\" bgcolor=\"CCCCCC\">VOTES</td></tr>");
while ($regist=mysql_fetch_array($result)) {
$tit=$regist["title"];
$vot=$regist["votes"];
$id=$regist["id"];
print ("<tr><td><input type='checkbox' name='assign_name[]' value='" . $regist["id"] . "'></td><td>$tit</td><td>$vot</td></tr>");
}
echo ("</table>");
}else{
print ("there are no entries");
}
mysql_free_result ($result);
?>
</body>
</html>
the database is called OMDB.
the table with the movies is called MOVIES.
and the columns in MOVIES are: TITLE, YEAR, PAGE, VOTES and ID.