Guest User

index.php

a guest
Mar 27th, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. $currentUser = CurrentUser::getInstance();
  2. $UserID = $currentUser->getId();
  3. $UserID=285;
  4. $que1 = mysql_query("SELECT productid from admin_levels WHERE level>1 AND userid=$UserID ORDER BY productid");
  5. $op1="";
  6. while($row1 = mysql_fetch_row($que1))
  7. {
  8. foreach($row1 as $cell1)
  9. {
  10. $op1.="'".$cell1."',";
  11. }
  12. }
  13. $temp1=strlen($op1)-1;
  14. $op1=substr($op1,0,$temp1);
  15. $_SESSION['krish']="114,16,17";
Advertisement
Add Comment
Please, Sign In to add comment