User variable in WHERE clause
-
I tried to use a variable $seplog_logged_userID in a WHERE clause, like in your example SELECT * FROM wp_users WHERE user_login=’#user_login#;’ but can not get it working. This is the query: SELECT radio_posi AS posicao, COUNT( * ) contador FROM SaveContactForm7_2 WHERE num_ident = ′$seplog_logged_userID;′ GROUP BY posicao ORDER BY posicao ASC . I tried with (“, ‘, #) and nothing works.
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘User variable in WHERE clause’ is closed to new replies.