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:

$sql="SELECT option1 FROM quiz ORDER BY RAND() LIMIT 10";
$retval=mysql_query($sql) or die(mysql_error());
while ($r=mysql_fetch_array($retval,$conn))
echo $r['option1']."<br/>";