URL params in SQL query
-
Hi! I’ve this shortcode:
[cf7-recordset id="mydatas" type="database" query="SELECT id, description FROM {wpdb.prefix}mytable"]
And it works as expected. But can I in some way add an URL parameter in query, like this:
SELECT mt.id, mt.description FROM {wpdb.prefix}mytable mt WHERE mt.code = $_GET['code']
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘URL params in SQL query’ is closed to new replies.