This should be really easy but I am struggling.
Here is my current code
$friends = $facebook->api('/me/friends');
foreach($friends['data'] as $friend) {
$friend_id = $friend['id'];
}
$connections = "INSERT INTO connections (user_id, friend_id) VALUES ('$id', '$friend_id')";
$friend_id = $friend[‘id’]; should be a list of 1000 id’s. I want row created in a table for each $friend_id using the same $id
Thanks!
Like that? You must execute the query once for each row.