I am having some difficulty saving images to the server....
The code produces a successful form for capturing the information...
On the save part of the php which is where things are going wrong then the image does not save and the name of the image is also incorrect.....
$key3 = each($input['imagename']);
$input['imagename']['tmp_name'][$key3[0]];
$input['imagename']['name'][$key3[0]];
$input['imagename']['size'][$key3[0]];
$input['imagename']['type'][$key3[0]];
move_uploaded_file($input['imagename']['tmp_name'][$key3[0]], $this -> uploadPath.$input['imagename']['name'][$key3[0]]);
$this -> db -> query('
INSERT INTO brewery_location_information
(brewery_location_id,
Brewery_Location_Information_Type_Id,
Brewery_Location_Information_Value)
VALUES('.$blocationid.',
'.$key3[0].',
"'.$this -> imageStore.$input['imagename'][$key3[0]].'"
)');
The file is not uploaded to the server ... even though I have already defined where it should go....
var $imageStore = 'http://www.cara-online.com/bqb/images/BreweryLocation/';
var $uploadPath = '/home/web3653/website/bqb/images/BreweryLocation/';
the data written to the Brewery_Location_Information_Value field is:
http://www.cara-online.com/bqb/image...Location/C:\My Documents\My Pictures\0285D.gif
as opposed to:
I hope you can help me
The code produces a successful form for capturing the information...
On the save part of the php which is where things are going wrong then the image does not save and the name of the image is also incorrect.....
$key3 = each($input['imagename']);
$input['imagename']['tmp_name'][$key3[0]];
$input['imagename']['name'][$key3[0]];
$input['imagename']['size'][$key3[0]];
$input['imagename']['type'][$key3[0]];
move_uploaded_file($input['imagename']['tmp_name'][$key3[0]], $this -> uploadPath.$input['imagename']['name'][$key3[0]]);
$this -> db -> query('
INSERT INTO brewery_location_information
(brewery_location_id,
Brewery_Location_Information_Type_Id,
Brewery_Location_Information_Value)
VALUES('.$blocationid.',
'.$key3[0].',
"'.$this -> imageStore.$input['imagename'][$key3[0]].'"
)');
The file is not uploaded to the server ... even though I have already defined where it should go....
var $imageStore = 'http://www.cara-online.com/bqb/images/BreweryLocation/';
var $uploadPath = '/home/web3653/website/bqb/images/BreweryLocation/';
the data written to the Brewery_Location_Information_Value field is:
http://www.cara-online.com/bqb/image...Location/C:\My Documents\My Pictures\0285D.gif
as opposed to:
I hope you can help me
Comment