If the data you placed at the beginning of your question is the result of your database query (I’m unsure by how your question is worded), you will want to take that query result and use the PHP function unserialize()
to convert that data to an array, then you can access your data from that array.
Your serialized data will become at array that looks like this:
Array
(
[0] => Array
(
[wwsd_percent_discount] => 10
[wwsd_minimum_discount_qrt] => 20
)
[1] => Array
(
[wwsd_percent_discount] => 20
[wwsd_minimum_discount_qrt] => 50
)
[2] => Array
(
[wwsd_percent_discount] => 30
[wwsd_minimum_discount_qrt] => 100
)
)
Related Posts:
- Can i use php sql functions instead of $wpdb?
- wpdb::prepare was called incorrectly
- Custom query to get post names beginning with a digit
- queries inside of a class
- PHP syntax error when using wpdb update?
- “The plugin generated 2694 characters of unexpected output…” on Plugin activation, CREATE TABLE sql command not working
- Ajax $wpdb not returning table data
- Converting MYSQL to WordPress $WPDB
- How to Fetch values from WP database based on selected option value by onchange using PHP?
- Custom field value not saving when it contains a URL?
- Call External Object in Class Function During Callback
- Why is variable not working on custom sql query using wpdb?
- Get stock by custom meta field on all Woocommerce variable products
- Any possible way to make $wpdb->get_results() return anything else than array?
- Display fields as values in array from external SQL DB
- Can’t get wp_insert_post to work
- Trying to establish connection to External Database
- Getting id of poll from WP database
- How to insert a single row to WP database table?
- WSoD being caused by this piece of code
- I want to select the from values from database in WordPress? [closed]
- $wpdb->update with multiple parameters gives error
- Update results, Before deleting the related category [closed]
- Seach custom post type posts only by meta fields?
- How WordPress reacts to a lack of memory of the server [closed]
- wp query foreach deleting record returning only first or last item
- Sort meta-value in the sequence array in pre_get_post
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- $wpdb->insert() does not Insert record in a table
- Grouping posts by a custom meta value
- Custom array from a query only write the last row of the query
- Find a way to retrive data updated through metabox plugin to web page
- Error using WordPress $wpdb object to get result from custom table
- How to retrieve the data from the sever and displaying it in a page?
- Querying Database with wpdb
- Can’t update multiple rows with $wpdb query
- Mixing variables into an array when inserting values
- How to use array in function to get only value I want
- Wpdb->insert() doesn’t insert new row after the last one
- how to get serialized post meta
- Use $wpdb or other PHP script method to find/replace in WP database
- Basic wpdb update question
- wpdb Cannot Update column in Database
- PHP -> SQL Query with Summing
- How to insert wp_users ->user login name to wp_terms when a new user registering?
- Cannot access $wpdb, comes back NULL
- How do I prepare strings for insertions as values into a MySQL table?
- Change MySQL PDO connection to a WPDB connection
- WPDB – Read and write value from / to database
- $wpdb->get_results breaking page?
- form $_post action value gets truncated after it passes through two forms
- How to Generate a list of Most Commented post?
- Why won’t this wpdb get_results query return results?
- Undefined variable: row?
- Add row to custom database Table and delete all rows older than 1 day
- Call to a member function get_row() on a non-object, Unable to use global $wbdp inside a plugin
- select a single val though a table in wordpress
- populate select options from extra mysql table data
- Query the links Database
- WordPress get last inserted user id
- Add posts to custom table in database instead of wp_posts
- WordPress SQL Prepare
- how can i update my postmeta without losing old data?
- Creating multiple tables with Plugin
- Conditional formatting on data fetched from MYSQL
- What is the correct way to search 3 custom fields only in WordPress?
- Using wpdb to connect to a different database is not working
- Looping through custom data in a custom table to display all items in a post
- Displaying SQL query result from user input via wpdb
- How do I create a WP endpoint that retrieves all custom post types that have a tag?
- 403 Forbidden WordPress Database Results
- How to grab data from input and store it into custom table in database?
- Rewrite SQL query as a prepared statement and use in foreach loop
- How to return count of items found in SQL query
- Update user_email via php – WP 4.7
- Unable to pass variable to database
- Display Content Based on Custom Field Value
- Accessing external database: ERR_INCOMPLETE_CHUNKED_ENCODING
- Passed variable gets undefined variable error on insert on next page
- Run insert if no entry otherwise run update with ajax
- MySQL queries in WordPress
- Get null from POST
- Querying multiple meta_keys in WordPress SQL query
- MySQL database migration to WordPress
- Fetching wpdb data from a php file seems to break?
- How do you get a reference to $wpdb in a PHP script
- Insert into db with foreach problem
- posts_clauses drop ACF get_field function
- WordPress Query -> Ajax Query
- how to display tables via ajax
- Changing regular db connection to $wpdb
- Can’t send form data to wpdb when URL has query string
- inner-wrap div pushing custom table far down on page
- use wpdb object on other file
- $wpdb how to make a record lookup
- Error resetting database index using ALTER TABLE in $wpdb->query
- I have an error WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version
- Search custom post type posts only by meta fields?
- Warning: Undefined property: wpdb::$question_overview in C:\Wamp.NET\sites\proxyvragenmodule\wordpress\wp-includes\class-wpdb.php
- WordPress / PHP: Check if column has value and then check if value in array