Welcome Guest, Not a member yet? Register   Sign In
How to get JSON data in table - Codeigniter
#4

(09-07-2018, 03:53 AM)jaydevvara Wrote:
(09-07-2018, 03:36 AM)Wouter60 Wrote: Use JSON.parse(data) in the success part of AJAX:
Code:
records = JSON.parse(data);

A few remarks on php styling.
If you mix php and html, the alternative syntax for control structures can be very helpful:
PHP Code:
<?php foreach($records as $record) : ?>

  <?php if ($t == 'blabla') : ?>
     <p>You said blabla</p>
  <?php else : ?>
     <p>You said something else…</p>
  <?php endif; ?>
  
<?php endforeach; ?>

i already added json in success part but i did not get in response in success part
Reply


Messages In This Thread
RE: How to get JSON data in table - Codeigniter - by jaydevvara - 09-07-2018, 03:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB