hii friends

i am trying to retrieve data from table but at the time of running that code server showing following error mysql_fetch_array() expects parameter 2 to be long, resource given in C please let me know my mistake ....


my code is here:

<?php
$dbhost='localhost';
$dbuser='root';
$dbpass='';
$conn=mysql_connect($dbhost,$dbuser,$dbpass);
$sql="SELECT option1 FROM quiz ORDER BY RAND() LIMIT 10";
mysql_select_db("goget");
$retval=mysql_query($sql) or die(mysql_error());
while ($r=mysql_fetch_array($retval,$conn))
{
echo $r['option1']."<br/>";
}
?>