Welcome Guest, Not a member yet? Register   Sign In
how to display result_array in php ?
#2

[eluser]hightower[/eluser]
Try this in your view:

Code:
<?php
foreach ($data as $d)
{
    echo '<td>' . $d['name'] . '</td>';
}
?&gt;

Basically, include the <td> and </td> in the foreach statement and they to will be repeated.

P.S. Use code tags when posting so it's easier to read your code Smile


Messages In This Thread
how to display result_array in php ? - by El Forum - 07-02-2009, 12:41 AM
how to display result_array in php ? - by El Forum - 07-02-2009, 01:41 AM
how to display result_array in php ? - by El Forum - 07-02-2009, 06:11 AM
how to display result_array in php ? - by El Forum - 07-02-2009, 06:19 AM
how to display result_array in php ? - by El Forum - 07-02-2009, 06:30 AM
how to display result_array in php ? - by El Forum - 07-02-2009, 06:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB