Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Call to undefined function
#1

[eluser]Bob Puzld[/eluser]
I get the following error in one of my view pages...

Fatal error: Call to undefined function mysql_to_human() in /home/rrrprogr/public_html/system/application/views/users/view.php on line 104

Here is the code from that page (line 104 is the last line)...

Code:
<h1>Payouts</h1>
  <table class="datatable">
  <tr><th>Status</th><th>Date Requested</th><th>Date Paid</th><th>Recipient</th><th>Amount</th></tr>
  &lt;? if($payouts->num_rows() != 0): ?&gt;
    &lt;? foreach($payouts->result() as $row):
       if($row->organization_id != 0) {
         $status = '-';
         $data_paid = '-';
       }
       elseif($row->date_paid == 0) {
         $status = '<strong style="color: #CC0000;">Pending</strong>';
         $date_paid = '-';
       }
       else {
         $status = '<strong style="color: #66CC33;">Paid</strong>';
         $date_paid = mysql_to_human($row->date_paid);
       }

Does anyone know where this function would or should be located? I cannot find it in the controller or the model. I have recently upgraded to the latest version of codeigniter (1.7.2), and this error now appears. Any ideas would be great. Thanks.


Messages In This Thread
Fatal error: Call to undefined function - by El Forum - 11-02-2009, 02:56 PM
Fatal error: Call to undefined function - by El Forum - 11-02-2009, 03:34 PM
Fatal error: Call to undefined function - by El Forum - 11-02-2009, 03:48 PM
Fatal error: Call to undefined function - by El Forum - 11-02-2009, 03:49 PM
Fatal error: Call to undefined function - by El Forum - 11-02-2009, 04:05 PM
Fatal error: Call to undefined function - by El Forum - 11-02-2009, 04:34 PM
Fatal error: Call to undefined function - by El Forum - 11-03-2009, 12:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB