Jump to content

multiple image upload on mysql table


prabin04

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.