$query = mysql_query("select * from picz where id > '$id' and genre = '$k' ORDER BY id ASC LIMIT 1");