How to query mySQL to select multiple specific values?

In general, you want selectto take 10 ip_id, where mes_id_fk=is from 1 to 10.


Answer 1, authority 100%

select ip_id from vote_ip where (mes_id_fk BETWEEN 1 AND 10) and ip_add='$ip'

or

select ip_id from vote_ip where mes_id_fk < 10 and ip_add='$ip'

Answer 2

$ip_sql=mysql_query("select ip_id from vote_ip where mes_id_fk IN('1','2','3','4','5','6','7','8','9','10') and ip_add='$ip' LIMIT 10");
$count=mysql_fetch_array($ip_sql);

Answer 3

I hardly understood the question, but! Add things like ORDER BYand LIMITto mysql_query.
Output data through a loop:

while($count=mysql_fetch_array($ip_sql)) {
  echo $count['    '];
}

P.S. Or I misunderstood)