mySql querry help
-
Can someone suggest the best sql query to get table with user names, user emails, XProfile field and values. I am trying to create table with these values for user using plugin wpDataTable Constructor
SELECT wp_bp_xprofile_data.value, wp_users.user_email, wp_users.display_name FROM wp_users LEFT JOIN wp_bp_xprofile_data ON wp_bp_xprofile_data.user_id = wp_user.ID LEFT JOIN wp_bp_xprofile_data ON wp_bp_xprofile_fields.id = wp_bp_xprofile_data.field_id
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘mySql querry help’ is closed to new replies.