Search found 5 matches

by jayson2012
Sun Aug 13, 2017 10:36 pm
Forum: PHP General
Topic: Data report display horizontally
Replies: 7
Views: 353

Re: Solve : Data report display horizontally

here is my solution, hope it will help you guys $empty = array(); foreach($result_cid as $row) { $empty[$row['branch']] = ' '; } echo "<table class='table table-hover table-bordered'> <tr><th class='text-center'>Descriptions</th><th>"; $heads = array_keys($empty); echo join ('</th><th class="te...
by jayson2012
Fri Aug 11, 2017 5:20 pm
Forum: PHP General
Topic: Data report display horizontally
Replies: 7
Views: 353

Re: Data report display horizontally

thanks for your response, so lets focus in one table, and don't mind the source code i posted above, and here is sample image what i want to be. it looks like a pivot, but i need in HTML table combination it means, its combine with php loop and i hope it will give you clarification. https://i.imgur....
by jayson2012
Thu Aug 10, 2017 1:59 am
Forum: PHP General
Topic: Data report display horizontally
Replies: 7
Views: 353

Re: Data report display horizontally

No, what i mean i a query. i have here, i did not get the right output public function load_report() { $this->db->select('com.comid,com.cid,com.sid,com.uid,com.branch,com.aqty,com.adate,com.temp'); $this->db->select('co.cid,co.description,co.bqty,co.uid,co.temp'); $this->db->select('b.area_code,b.br...
by jayson2012
Wed Aug 09, 2017 11:11 pm
Forum: PHP General
Topic: Data report display horizontally
Replies: 7
Views: 353

Re: Data report display horizontally

i have, a table like what you saw above, and i want to display it in HTML table like above.
hope you understand, thank you.
by jayson2012
Wed Aug 09, 2017 8:08 pm
Forum: PHP General
Topic: Data report display horizontally
Replies: 7
Views: 353

Data report display horizontally

Hi Coders,

anyone can help me with the following output, Image

<img src='https://i.imgur.com/cFwgY2y.jpg' />