06-14-2012, 03:41 PM
[eluser]Ghetolobster[/eluser]
Romy,
This saved me a HUGE amount of time thank you. I have however run into a small issue. I want to save the filenames to a database but I cannot seem to figure out how to do so. Could you give me an example of how I would achieve this say with a table such as below
I forgot to mention this is my form
Romy,
This saved me a HUGE amount of time thank you. I have however run into a small issue. I want to save the filenames to a database but I cannot seem to figure out how to do so. Could you give me an example of how I would achieve this say with a table such as below
Code:
CREATE TABLE IF NOT EXISTS 'user_images' (
'id' int(11) NOT NULL AUTO_INCREMENT,
'image_name' varchar(100) NOT NULL,
PRIMARY KEY ('id')
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
I forgot to mention this is my form
Code:
<?php echo form_open_mutlipart('site/upload');
echo form_upload('userfile[]','','multiple="multiple"');
echo form_submit('submit','Upload');
echo form_close();
?>