Skip to content
Advertisement

Tag: json

Get json encode data from two tables based on foreign key

I have a question for you and I have not found a solution to this, So I have two tables which are sales_details and sales_payment. Sales details where you can see all the details and the other table is for payment info/transaction. Sales details have the primary key and the sales_payment table have the FK. To combine all the data

Loop Through Nested JSON Response PHP

I’m trying to loop through and return data (‘rank’ from ‘rank_details’) from a returned JSON response. Here is a snippet of the JSON response (what I’m getting from: $array = json_decode($apiResponse);…

how to get value inside JsonObject

im trying this new method Ion. with PDO and I got stuck where I want to get value inside JsonObject. I previously used Volly with msqli but I find Ion. more organized and PDO more safe. whenever I try …

PHP separate values by comma

I am trying to separate my JSON Array: WHERE What i need is if one column like “Front_glass”:”X, XXX_or_XX, G” has three values it should be or any thing that is possible Thanks. Answer You can use array_map function in your case. Look here live PHP sandbox

Advertisement