I am using the $wpdb->get_var php code to get the first name and last name on the records, in the wp_usermeta table... But because the field value is stored in the same cell, I don't know how to merge it into one string. Right now I do it like this:
$_EmployeeFName = $wpdb->get_var( $wpdb->prepare("SELECT `meta_value` FROM `wp_usermeta` WHERE `meta_key` = 'first_name' and `user_id` = %d ", $_REQUEST['empid']));
$_EmployeeLName = $wpdb->get_var( $wpdb->prepare("SELECT `meta_value` FROM `wp_usermeta` WHERE `meta_key` = 'last_name' and `user_id` = %d ", $_REQUEST['empid']));
Is there a way to do that in ONE pull from the database? I don't want to do this a lot, to save the database from so many pulls...
I don't know how to do it though.
do you?
Thanks, Richard