我想在数据库中保存一些已发送的邀请,这是我的代码:
$request_ids = explode(",", $_REQUEST['request_ids']); foreach ($request_ids as $id) { $sql = "INSERT IGNORE INTO fb_invites (sender_id, recipient_id, created_time) VALUES(".(int)$me['id'].", ".(int)$id.",NOW())"; $result = mysql_query($sql) or die(mysql_error()); }
}
但它确实有效。你能说我如何获得收件人ID吗?