• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upload problem

#6
[eluser]Gazzhop[/eluser]
Solved! thanks, I have another question:

in /var/www/html I have two sites main and the CMS.

I have created a form and want to dump out the images in the main site's image folder into options (so they can be assigned).
But when I use
Code:
$this->load->helper('directory');
$pics = directory_map($_SERVER['DOCUMENT_ROOT'] . "/MAIN/images";
$this->load->view('Assign', 'pics'=>$pics);

view
Code:
foreach($pics as $row){
print "<option value='" . $row . "'>" . $row . "</option>";
}

I get no options, what have I done wrong?


Messages In This Thread
Upload problem - by El Forum - 09-18-2009, 08:30 AM
Upload problem - by El Forum - 09-19-2009, 11:29 AM
Upload problem - by El Forum - 09-19-2009, 12:06 PM
Upload problem - by El Forum - 09-21-2009, 04:10 AM
Upload problem - by El Forum - 09-21-2009, 05:12 AM
Upload problem - by El Forum - 09-22-2009, 02:11 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.