It looks like you're new here. If you want to get involved, click one of these buttons!
mysql_query(\"DELETE FROM md_u_profile WHERE mdu_p_id = 13 \");
INSERT INTO table SET
name ='${fileName}',
filePath ='${targetFile}',
content_type ='${content_type}'
// I added this line due to avoid spaces in names
$name_file_ok = str_replace(" ","_",$_FILES['Filedata']['name']);
// I changed this line with my var instead of $_FILES['Filedata']['name']
$targetFile = str_replace('//','/',$targetPath) . $name_file_ok;
//this is my query; I have a table called "foto_table" with 4 cols called "name_foto" etc.
//the id_album variable is passed by the URL of the page;
//the only field I NEED to put in my table is $name_file_ok (of course, one for each uploaded file;
$query = 'INSERT INTO foto_table (name_foto, descr_foto, id_album, name_file) VALUES ("'.$name_foto.'","'.$descr_foto.'","'.$_GET['id_album'].'","'.$name_file_ok.'")';
mysql_query($query) or die ('Could not connect: ' .mysql_errno().': '.mysql_error().'<BR />');