Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
PHP - JSON Question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Skythrust" data-source="post: 467508" data-attributes="member: 87030"><p>Hi there,</p><p></p><p>I would like to have some details from a JSON into a PHP page.</p><p></p><p>[CODE=json][{"Name":"Diesel,Jhon",,"Time":"2021-02-11T09:45:17.517","Online":true},{"Name":"Doe,Jane",,"Time":"2021-02-11T09:47:17.517","Online":false}][/CODE]</p><p></p><p>It needs to look like this below, but not hardcoded. And when there is another record it need to come here as well. Other important thing is that the status Online makes the switch between TextOn or TextOff </p><p></p><p>[CODE=html]<div class="TextOn">John von Diesel</p><p> <label class="switch"></p><p> <input type="checkbox" checked></p><p> <span class="slider round"></span></p><p> </label></p><p></div></p><p><div class="TextOff">Jane Doe</p><p> <label class="switch"></p><p> <input type="checkbox" unchecked></p><p> <span class="slider round"></span></p><p> </label></p><p></div>[/CODE]</p><p></p><p>Any idea how I can realise this?</p></blockquote><p></p>
[QUOTE="Skythrust, post: 467508, member: 87030"] Hi there, I would like to have some details from a JSON into a PHP page. [CODE=json][{"Name":"Diesel,Jhon",,"Time":"2021-02-11T09:45:17.517","Online":true},{"Name":"Doe,Jane",,"Time":"2021-02-11T09:47:17.517","Online":false}][/CODE] It needs to look like this below, but not hardcoded. And when there is another record it need to come here as well. Other important thing is that the status Online makes the switch between TextOn or TextOff [CODE=html]<div class="TextOn">John von Diesel <label class="switch"> <input type="checkbox" checked> <span class="slider round"></span> </label> </div> <div class="TextOff">Jane Doe <label class="switch"> <input type="checkbox" unchecked> <span class="slider round"></span> </label> </div>[/CODE] Any idea how I can realise this? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
PHP - JSON Question
Top