prabin04 Posted November 13, 2014 Share Posted November 13, 2014 what's wrong with this ? i can't upload if( isset($_POST['btn_add']) ) { $content=mysql_real_escape_string($_POST['content']); $title=mysql_real_escape_string($_POST['title']); $objPage->add_page($title,$content); if(isset($_FILES['image_name'])){ $image_name= $_FILES['image_name']; $upload_dir = "/var/www/cms/admin/upload/"; $upload_file = $upload_dir.$_FILES['image_name']; $objPage->add_image($image_name,$upload_file); Link to comment https://forums.phpfreaks.com/topic/292435-multiple-image-upload-on-mysql-table/ Share on other sites More sharing options...
Barand Posted November 13, 2014 Share Posted November 13, 2014 I suggest you read the example on this page http://php.net/manual/en/features.file-upload.post-method.php and see how the $_FILES should be accessed Link to comment https://forums.phpfreaks.com/topic/292435-multiple-image-upload-on-mysql-table/#findComment-1496493 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.