selenin Posted June 12, 2011 Share Posted June 12, 2011 Hi I built a session array like this $notuserchannel = array(); $notuserchannel = $_SESSION['user']; $notuserchannel[] = $_GET['nextsub']; $_SESSION['user'] = $notuserchannel; Now I want mysql that youtube not in array session, I tried it like that: $sql = dbquery("SELECT youtube, subcredits FROM myMembers WHERE subcredits > 0 and id != '".$_SESSION['id']."' and youtube NOT IN ('".$_SESSION['user']."') and '".$_SESSION['id']."' NOT IN (select concat_ws(',', sub_giver) from sub_activity where sub_received = myMembers.id) ORDER BY myMembers.subcredits DESC LIMIT 1"); youtube not in session, but it's not working... Quote Link to comment https://forums.phpfreaks.com/topic/239161-array-problem/ Share on other sites More sharing options...
selenin Posted June 12, 2011 Author Share Posted June 12, 2011 okay got it, had to implode... Thanks Quote Link to comment https://forums.phpfreaks.com/topic/239161-array-problem/#findComment-1228777 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.