Goins Posted March 5, 2008 Share Posted March 5, 2008 I am having trouble adding keywords to an image uploader. It is a multiuploader so it has alot more than one upload box. If it was just one upload box i could do it but since it is more than one i am having problems. In the upload part this $extension=$mmhclass->funcs->file_extension($mmhclass->input->file_vars['userfile']['name'][$i]); $filename = ($mmhclass->funcs->random_string(20).".{$extension}"); $thumbnail = $mmhclass->funcs->thumbnail_name($filename); $filetitle = strip_tags((strlen($mmhclass->input->file_vars['userfile']['name'][$i]) > 20) ? (substr($mmhclass->input->file_vars['userfile']['name'][$i], 0, 20)."...") : $mmhclass->input->file_vars['userfile']['name'][$i]); I did have a make an input box like this name="keyword" type="text" size="50" And put that up their. $keyword = ($mmhclass->funcs->random_string(20).".{$extension}"); But it just store random strings witch it suppose to. I put the keyword part in here. $mmhclass->db->query("INSERT INTO `mmh_file_storage` (`filename`, `is_private`, `gallery_id`,`keyword`, `file_title`) VALUES ('{$filename}', '{$mmhclass->input->post_vars['private_upload']}', '{$mmhclass->info->user_data['user_id']}','{$keyword}', '{$filetitle}'); "); Any Help Please! Link to comment https://forums.phpfreaks.com/topic/94604-hey-everyone-need-a-little-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.