I have an array called $friends and it has some values
$friends = array(); $friends[0] = 'Alex'; $friends[1] = 'Jake';
I want to be-able for my SQL query to select every array value in this case it is Alex and Jake
$q = "SELECT * FROM posts WHERE username='$friends' ORDER BY id DESC";
But I can't do that, I get a message saying "Notice: Array to string conversion in".
Please help I am quite new to PHP