JSON Decode Array |
[eluser]Unknown[/eluser]
Hello everyone, i newbie on code igniter, i have json data like this, how to i'm parsing in code igniter and output to table ? Thank you for your help. Code: stdClass Object
[eluser]pickupman[/eluser]
Assuming a variable $json holds the object you posted, you should be able to create a table as such. Code: <table>
[eluser]Unknown[/eluser]
Very Thank You It's Work. [quote author="pickupman" date="1356537700"]Assuming a variable $json holds the object you posted, you should be able to create a table as such. Code: <table>
[eluser]CroNiX[/eluser]
As a side, It usually looks much cleaner if you use the php alternative control structures when using HTML in your views. It also helps a lot of IDEs recognize the HTML as HTML since it's not within a PHP code block (between curly braces) Code: <table> http://ellislab.com/codeigniter/user-gui...e_php.html |
Welcome Guest, Not a member yet? Register Sign In |