25 $ilDB->manipulate(
"DELETE FROM il_news_subscription WHERE ".
26 " ref_id = ".$ilDB->quote($a_ref_id,
"integer").
" ".
27 " AND user_id = ".$ilDB->quote($a_user_id,
"integer"));
28 $ilDB->manipulate(
"INSERT INTO il_news_subscription (ref_id, user_id) VALUES (".
29 $ilDB->quote($a_ref_id,
"integer").
", ".
30 $ilDB->quote($a_user_id,
"integer").
")");
43 $ilDB->manipulate(
"DELETE FROM il_news_subscription WHERE ref_id = ".
44 $ilDB->quote($a_ref_id,
"integer").
" AND user_id = ".
45 $ilDB->quote($a_user_id,
"integer"));
59 $query =
"SELECT * FROM il_news_subscription WHERE ref_id = ".
60 $ilDB->quote($a_ref_id,
"integer").
" AND user_id = ".
61 $ilDB->quote($a_user_id,
"integer");
62 $set = $ilDB->query(
$query);
63 if ($rec = $ilDB->fetchAssoc($set))
84 $query =
"SELECT * FROM il_news_subscription WHERE user_id = ".
85 $ilDB->quote($a_user_id,
"integer");
86 $set = $ilDB->query(
$query);
88 while ($rec = $ilDB->fetchAssoc($set))
90 $ref_ids[] = $rec[
"ref_id"];