SQL Query to show User First Name
-
Hey there,
I’m trying to run a SQL query to fetch the first name of a user, can anyone tell me what I’m doing wrong with this as it returns nothing:
SELECT meta_value FROM
wp_usermetaWHERE user_id=’1′ AND meta_key=’first_name’The above should in theory get the first name of the administrator by going into the wp_usermeta table and pulling the first name from the meta_value column.
Thanks,
S
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘SQL Query to show User First Name’ is closed to new replies.