$user_id only seems to work for admin?
-
Hi, I would really appreciate your help.
I created an sql table with the sql:
select userid, field2, field3 from mytable where userid = $user_id
There are 2 rows in mytable
[userid:1, field2:a, field3:b]
[userid:testuser, field2:c, field3:d]The table shows the correct first row of data if I log in as admin (WordPress default user ID for admin is “1”), but when I log in as testuser the table shows “no results found”. How can I get the second row to show when I log in as testuser. Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘$user_id only seems to work for admin?’ is closed to new replies.