dbview where clausl didnt work ?
-
Hallo ,
i have the problem the mysql query should give the data of the current user , but i get the data of all usersi have this code
DB View: select LastLogin from User where Nickname=%d
in php snippet:
$u=wp_get_current_user(); echo "UserData" ; echo $u->user_login; echo do_shortcode("[dbview name='Gravity_data' arg1=$u->user_login]");"
if i change in DB View the Nickname to a exist name it works.
but the php snippet i think do_shortcode do not sent the user_name.
or make the var empty.the line
echo “UserData” ; echo $u->user_login;
gives a right username back.can anybody help ?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘dbview where clausl didnt work ?’ is closed to new replies.