Welcome Guest, Not a member yet? Register   Sign In
Problem with display_errors
#2

[eluser]jacobc[/eluser]
I guess you are trying to do a multiple upload...

If you want an array of any errors, you should probably use something like:

Code:
$data['errors'][] = $this->upload->display_errors();
That will add new element to the array each time.

And initialize it before you start adding errors...

Code:
$data['errors'] = array();

Then you can loop through them how you like... at the moment you're simply overwriting the array...

There is no need to separate the key and value in this case either... simply do:

Code:
<?php foreach($errors as $error) : ?>
<?php echo $error; ?>
<?php endforeach; ?>


Messages In This Thread
Problem with display_errors - by El Forum - 03-12-2009, 01:24 AM
Problem with display_errors - by El Forum - 03-12-2009, 01:34 AM
Problem with display_errors - by El Forum - 03-12-2009, 01:48 AM
Problem with display_errors - by El Forum - 03-12-2009, 01:52 AM
Problem with display_errors - by El Forum - 03-12-2009, 01:56 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:00 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:01 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:08 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:11 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:15 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:20 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:38 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:39 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:41 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:45 AM
Problem with display_errors - by El Forum - 03-12-2009, 03:07 AM
Problem with display_errors - by El Forum - 03-12-2009, 03:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB