I would like to put a list of ids in an array
and loop to select data from a table using
"IN" in the where clause.
I am not having any success getting this to work.
Note:I am using Mysql database, apache, linux/Windows
<? //array with list of friends to display $friend = array('1','2','3','4'); $query = "SELECT first, last, number FROM friend WHERE id IN '$friend'"; $result = mysqli_query($mysqli, $query);