想要排除所选软件包中已经存在的频道

时间:2019-03-25 05:07:56

标签: php

选择一个软件包后,从我的第一个选项卡中说出Power pack hindi,当我转到广播广播花束或Alacarte等其他2个选项卡时,Power Pack印地语中的所有频道均被排除,但是当我选择了muti package时,我的查询无法正常运行其唯一获取的最后一个包ID。我的网站网址http://myechoproject.com/GTPL/index.php

我有一个Db表,其中所有选择的数据都基于当前会话ID插入。我首先选择具有当前会话ID的所有记录,并在while循环内执行另一个查询,在该查询中,我仅采用了不在所选包中的tat通道。但是我的问题是此查询仅采用一个包ID,无法获取所有选定的包ID。我试图撒谎

$ seleted_pkg_sql =“选择*来自gtpl_channel_selector在session_id ='”。$ s_id。“'”;                                         $ seleted_pkg_res = mysqli_query($ conn,$ seleted_pkg_sql);                                         $ no_seleted_pkg = mysqli_num_rows($ seleted_pkg_res);                                         while($ seleted_pkg = mysqli_fetch_array($ seleted_pkg_res,MYSQLI_ASSOC))                                         {$ selected_sub_pkg_id = $ seleted_pkg ['package_id'];
                                            $ sql_channel_package3 =“ SELECT * FROM gtpl_package WHERE sub_package_id ='”。$ id。“'AND channel_name NOT IN(从gtpl_package WHERE sub_package_id =”。$ selected_sub_pkg_id。                                             $ exist_channel_package3 = mysqli_query($ conn,$ sql_channel_package3);                                             $ no_channel_package3 = mysqli_num_rows($ exist_channel_package3);                                             }

0 个答案:

没有答案