I’m pretty sure you don’t quote the $variable at all when doing a query with wpdb.
So 'association_first_name' => '$legalname'
would be 'association_first_name' => $legalname
But that might not solve all your problems.
Related Posts:
- How to correctly submit a search form and display the result in an independent page
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- Submitting a form, using Ajax, to run a SQL Select query based on user input from the form
- form $_post action value gets truncated after it passes through two forms
- WPDB secure custom form
- Adding data to custom wordpress database table
- Using Ajax to submit a form, and run a SQL Select query based on user input from the form
- Insert data from form to database
- Passed variable gets undefined variable error on insert on next page
- How to set up an auto delete post?
- How to pass username into form that sends data to database
- Custom form that stores data in mysql database
- Putting form result in my database
- Can’t insert into a database wordpress
- Fatal error: Call to undefined function mysql_connect()
- How to stop form resubmission on page refresh
- Query both first_name and last_name from wp_usermeta at the same time
- add_filter the_content str_replace after shortcode
- How to add query vars with paginated URLs?
- WordPress will not operate correctly
- How to Join two tables from separate databases within WordPress
- simple wordpress ajax plugin not working when not logged in
- Install will not load: PHP does not have MYSQL installed
- Insert post without actions/hooks
- Import 10,000 Users into WordPress WITH a specific ID for each user
- if statement on database query
- Is the regular ajax request method safe or I should use admin-ajax.php?
- Unusable menus and “Illegal widget setting ID: nav_menu_item[]” error
- Passing POST data from one WP post to another
- How to get the post_id from postmeta
- WordPress Ajax Custom Query – High CPU LOAD
- AJAX in WordPress, sending coords data to MySQL and show after into map
- Styling images coming from another blog
- register_activation_hook isn’t adding table to DB
- How to group 2 radio buttons in a widget?
- Query String being Removed Creating a Pagination Issue within a Custom Plugin
- Ajax $wpdb not returning table data
- Converting MYSQL to WordPress $WPDB
- Custom Plugin For Converting CSV To MySQL
- Get Admin Email Address From External PHP page
- Checking for new message using AJAX and PHP. Server overload?
- How to create a form and display its content as table in admin panel?
- Importing Geo data into wordpress database
- How can I reuse the code to capture a param in a URL and place in a value in a hidden form?
- How to check if a meta value has already been assigned to any user?
- How to pre populate a form field with a link of a current user’s author profile?
- wp query foreach deleting record returning only first or last item
- inserting a post from an extern php file but post content doesn’t show on wp site
- Show success or error messages in Ajax response to WordPress custom registration form
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- $wpdb->wp_users returning empty value for
- Form Security: nonce vs. jQuery
- Trying do build a contact form
- php include not working in custom page
- Force Users To Relogin
- Can a page contain php code?
- Basic wpdb update question
- A $_POST should occur when submit form but is not?
- Pull MySQL data from multiple tables and merge into 1 PHP array
- Using CFDB7 vs Custom MySQL Database [closed]
- How to set cookies
- add category to posts with tag wordpress
- PHP Contact form
- How can I Use 2 databases with one WordPress install
- Get wp_current_user_id using PHP and MySQL
- PHP- Why is my contact form keep showing it is invalid? [closed]
- Why won’t this wpdb get_results query return results?
- select a single val though a table in wordpress
- populate select options from extra mysql table data
- Custom forms with HTML
- Removal of all posts content in bulk, keeping the posts itself
- How to store checkbox data for individual users?
- Trying to update Woocommerce meta values
- AWS Lightsail WordPress – connect to database on instance using mysqli
- Usermeta data unserialize, extract and display in table in WordPress
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- I can’t separate the array by commas
- wordpress contact form messages not sending although it saying they were sent successfully with this php code
- Using wpdb to connect to a different database is not working
- Using a PHP form, get the page title or any other element in the sent e-mail
- How can i limit the number of posts to the most recent 6 in my query?
- Creating a WordPress addon for ContactForm7 submission (.XML file export)
- Custom Plugin Develoment, Form Action
- (Who to follow) Twitter widget
- Prepared DB Query from _POST array
- Custom HTML form using PHP – help with ajax/username validation
- How can I display a query in a page?
- Conditional statement within WP SQL query
- WordPress upload images not displaying
- two wordpress sites, two themes, one database, same content
- how to check for wordpress Query errors
- Insert double entry in DB
- Headers for Contact Form are wrong
- MySQL database migration to WordPress
- Custom query_posts() parameter
- Query Concatenation
- Where to put include php file?
- Display total count of products in orders of a specific order status
- Bulk data save in custom table
- running an existing WordPress site from Visual Studio Code?