Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get results from db and put in javascript array codeigniter

$query = $this->db->query("YOUR QUERY");

foreach ($query->result_array() as $row)
{
        echo $row['title'];
        echo $row['name'];
        echo $row['body'];
}
Source by codeigniter.com #
 
PREVIOUS NEXT
Tagged: #results #db #put #javascript #array #codeigniter
ADD COMMENT
Topic
Name
2+6 =