You can use this helper to show a formatted var_dump of the array's
It sounds like your not getting the data from the database.
PHP Code:
<?php
// -----------------------------------------------------------------------
/**
* varDebug () - Add this method to a CodeIgniter Helper.
* I named mine - debug_helper.php
* -----------------------------------------------------------------------
*
* Formatted output of var_dump() etc;
*/
if ( ! function_exists('varDebug'))
{
/**
* Debug Helper
* -------------------------------------------------------------------
* Outputs the given variable(s) with color formatting and location
*
* @param mixed - variables to be output
*/
function varDebug()
{
list($callee) = debug_backtrace();
$arguments = func_get_args();
$total_arguments = func_num_args();
echo '<div><fieldset style="background: #fefefe !important; border:1px red solid; padding:15px">';
echo '<legend style="background:lightgrey; padding:5px;">'.$callee['file'].' @line: '.
$callee['line'].'</legend><pre><code>';
$i = 0;
foreach ($arguments as $argument) {
echo '<strong>Debug #'.++$i.' of '.$total_arguments.'</strong>: '.'<br>';
var_dump($argument);
}
echo "</code></pre></fieldset><div><br>";
exit;
}
}
/**
* -----------------------------------------------------------------------
* Filename: debug_helper.php
* Location: ./app/Helpers/debug_helper.php
* -----------------------------------------------------------------------
*/
Use the helper to check your array's to see if your getting the data.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )