Script returns reversed uploads

See all posts Reply

Script returns reversed uploads new!
by Eric, 17 years, 8 months ago
For some reason, my upload results are in the reversed order in which they appear on the form. Is there a way to Reverse the array from the POST, or just make the results show in the correct order?

ThanksReply
Re: Script returns reversed uploads new!
by colin, 17 years, 8 months ago
I am not too sure what you mean, but you can reverse an array like this:
$array = array_reverse($array, 1);
Reply
Re: Script returns reversed uploads new!
by Eric, 17 years, 8 months ago
Yeah, i've tred that but it doesn't seem to do anything. (I am using the multiple upload script in the FAQ section).

Here is what I am doing for the logs:
$log .= '[IMG]http://www.url.com/imgs/' . $member_id . '/' . $handle->file_dst_name . '[/IMG]';

And then once it is done, I echo $log;

Is there some way to add strings to $log in Reverse Order?Reply
Re: Script returns reversed uploads new!
by Eric, 17 years, 8 months ago
DOH! God, feel like an idiot.

$log = '[IMG]http://www.url.com/imgs/' . $member_id . '/' . $handle->file_dst_name . '[/IMG]' . $log;

Yeesh... Seems to be working now, thanks!Reply