Guest User

Untitled

a guest
Oct 19th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. so what i want is that, when this query returns its values, i only want it to return user_id of users that registered 7days now,
  2. so i know that there is a users table wp_users in this table, there is a column user_registered that hold the date the user registered,
  3. i also know of user_registered>= DATE(NOW()) - INTERVAL 7 DAY and user_registered<= now()
  4. but i dont know how to combine all these to achieve my result, i would be glad if you could help.. Thanks
  5.  
  6. SELECT user_id FROM wpcg_usermeta WHERE meta_key = 'user_parent' AND meta_value = 2
Add Comment
Please, Sign In to add comment