i have an array in databae like this :
Field : smt_id
Value in database : 261, 323
type : varchar(100)
smt_id is not fix field. if i updated as 3 arrays it will be like this example : 261, 323, 111 and variable $mid will change to 261, 323, 111
now i want to do sql statement like this using this variable.
$mid = 261, 323
$sql = "SELECT first_name FROM ".TABLE_PREFIX."members WHERE member_id ='$mid'";
$result = mysql_query($sql,$db);
when i print the sql the result is like this:
SELECT first_name FROM AT_members WHERE member_id ='261, 323'
My question is, how i change above sql so it become like this :
SELECT first_name FROM AT_members WHERE member_id IN ('261', '323')
and how can i make every result break like this:
John
Merry