$r = mysql_query("select * from personnel limit 0, 5 ", $link_id);就是取前5条