$sql = mysql_query ("select * from videolar order by rand() DESC limit 45") or die(mysql_error()); $a = mysql_fetch_array($sql); echo sizeOf($a);