Jump to content

Array Problem


selenin

Recommended Posts

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... :shrug:

Link to comment
https://forums.phpfreaks.com/topic/239161-array-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.