Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $currentUser = CurrentUser::getInstance();
- $UserID = $currentUser->getId();
- $UserID=285;
- $que1 = mysql_query("SELECT productid from admin_levels WHERE level>1 AND userid=$UserID ORDER BY productid");
- $op1="";
- while($row1 = mysql_fetch_row($que1))
- {
- foreach($row1 as $cell1)
- {
- $op1.="'".$cell1."',";
- }
- }
- $temp1=strlen($op1)-1;
- $op1=substr($op1,0,$temp1);
- $_SESSION['krish']="114,16,17";
Advertisement
Add Comment
Please, Sign In to add comment