skip to Main Content

Php versions – How to read value from JSON array?

At my database i has column items, and in this coluln i has value: [{"id":588,"user_id":1,"item_id":801,"created_at":"2020-12-16T11:55:40.000000Z","updated_at":"2020-12-16T11:55:40.000000Z","item":{"id":801,"market_hash_name":"Blackshield Protodrone Armor","image":"-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KW1Zwwo4NUX4oFJZEHLbXK9QlSPcUmoBVWSV6fSuGu387sW1JmKwFDiamtJBJs1_baPjBH79S3q4iEhfnxJ4TCnmRE5MF0mNbN9J7yjRrnrkNqNjr7IICSIFVsaVzYr1O4kOq915O16pyfm3Bi6SVzt3nYnUC0n1gSOXdKDzqL","exterior":"Mythical","rarity":"Mythical","color":"D2D2D2","is_stattrak":0,"price":1.3,"created_at":null,"updated_at":"2020-12-16T19:45:02.000000Z"}}] I need to take value of item_id, i try to make it like: <td>{{ $bet->items[item_id] }}</td> But i received error: Use of undefined…

VIEW QUESTION

jQuery ajax response time

I'm using a simple Ajax get method on local machine that providing to empty function in my server-side laravel code, and observe from browser network that response is returned randomly in from 250-500ms. Can't get any similar problem (if it's…

VIEW QUESTION

Ajax, the old value appears first and then the new one – Jquery ajax

I have Session::flash notifications(bootstrap toasts), which is used to notify about adding a product to the cart: @if(Session::has('add-product')) <div aria-live="polite" aria-atomic="true" class="d-flex justify-content-center align-items-center"> <div class="toast fixed-top" role="alert" aria-live="assertive" aria-atomic="true" data-delay="3000"> <div class="toast-header bg-success"> <span class="mr-auto notif_text"></span> <button type="button" class="ml-2…

VIEW QUESTION
Back To Top
Search