Is it possible to have a form page for logged-out users where values are stored persistently?
You could always stored the selections in cookies or localStorage, then query the database via ajax calls on subsequent pages.
You could always stored the selections in cookies or localStorage, then query the database via ajax calls on subsequent pages.
You can create a new wpdb object, and then use that. global $mydb; $mydb = new wpdb( $db_user, $db_pass, $db_name, $db_host ); …and then use $mydb as you would the global $wpdb object.
Creating a table via dbDelta
For anyone else who comes across this post… the above issue was caused by the w3-total-cache plugin being migrated between Test and Staging servers. To fix the issue, I deactivate and exclude w3-total-cache tables from the Test server’s db export, then I do the upload and import to Staging server, which has its own “local” … Read more
We do not want to replace our existing db, just run queries through SSL connection against that db from our WordPress. You can create new WPDB objects to connect directly to new MySQL/MariaDB instances, but there is no support for tunnels, it is a direct connection only. For anything else you’d need to proxy it … Read more
Can I log the searches that are returning 404 in the DB?
How to get data (not value or name) from radio options to POST to database
Custom form that stores data in mysql database
Changes to code not displaying
Display custom data based on URL slug