I really need your help To solve this array problem. Basically want to show each array values on wp data table. Its store on xampp wp_option table.
How can i use query to show them on data table.
Example of my databse: https://image.prntscr.com/image/Vna_-ux7T4mNEGPZAq1lrA.png
[Its shows the table column and rows]
Here are the example of my option_value json files .
{"id":1,"number":false,"input":"My table is now working","textarea":"Go to hell , you will find there","select":false,"radio":false,"hidden":false,"myFile":"C:\\\\fakepath\\\\FI.txt","fineuploader":false,"date":false,"checkbox":false,"button":false,"reset":false}
Its a json_encoded data. Now by global wpdb I want to show them in wordpress data table.
I just need the query through which i can loop all the keys and values and show them on data table.
Please help me on this.
Related
my table contain the following fields
code , name , upper_code
I can use code value in upper code field and so on, is there a way to query which level is deep the row with code I choose , I use this table to record financial chart of accounts
A loop that keeps on searching until upper_code is null or not found. You can do that in PHP or in a stored procedure.
There are alternatives but require that you change the structure of your database.
I have 3 php tables, which are response, question and answer. the response table is dynamically retrieved from mysql and displayed on my website. the response table displays values from the question and answer table through foreign keys.
I want to edit a field in the answer table through the response table which is being displayed, however i do not know how to build the query for it to be able to do this. the description field in the answer table is the one which i want to edit.
I have tried researching on how to do this, but as i am new to php / Mysql i have not found a solution.
Please see below a designer view of my tables
I am retrieving everyday sales data from MYSQL database using PHP and displaying it in HTML table in multidimensional way. Want to get subtotals by category of day by day sales to in it column.
Then I came to know about pivottable.js and subtotal.js plugin but the problem is this works with json or CSV data. How can I do this with printed HTML table?
Any idea or solution?
I have some data in a MYSQL database table that I need to "print" in a HTML web page, but I need that this information be shown dynamically in a 3 row and a maximum 12 column table.
Each column must show three sets of information, that will be displayed in each row, like the table below.
Is there a way to do this using PHP and/or HTML?
Thanks for the help
I have some questions about customizing export result(excel) with php. The idea is i want to export my query of my raw data (mysql table) to excel file but with some customization in the result.
for example i want to have result which is summary of the table like below table:
The 3rd column until 7th column is named based on the last 5 days of my report date.
My idea is:
1. create temporary table using format as the result table i want to generate
2. Insert the table with my raw data.
3. Delete those table.
Is that efective?or is there any better idea?
You can always use a view. Which is essentially a select statement with your data in there, and which will be updated whenever your tables are updated. Then you can just do a 'select * from view_name' and export that into your excel.
Depending on the size of the data, there is no need to think about performance.
Edit the data before
You can have a temp table. Depending on the data, this is very fast if you can select and insert the data based on indexes. Then you make a SELECT * from tmp_table; and you have all your data
Edit the data after
You can just join over the different tables, get the data and then loop (read as foreach) over the result array and change the data and export it afterwards