|
Im back... now is 10:23AM and i think i found your error... when you reffer to the files in example in this line:[PHP]$add_contents = "insert into wocontents values ('', $master_id, now(), now(), '$_POST[add_work_order_text]',
'c:/Program Files/EasyPHP1-7/www/screenshot files/'.$_FILES[add_work_order_screen][name], 'c:/Program Files/EasyPHP1-7/www/work order files/'.$_FILES[add_work_order][name])";[/PHP] you use a dot after the single quotation this will make the file name stay out of the quotations... also when I reffer to arrays inside strings I use other method... your method works with single arrays but apparently does not work when you have bidimentional arrays... so change the previews line to [PHP]$add_contents = "insert into wocontents values ('', $master_id, now(), now(), '$_POST[add_work_order_text]',
'c:/Program Files/EasyPHP1-7/www/screenshot files/{$_FILES['add_work_order_screen']['name']}', 'c:/Program Files/EasyPHP1-7/www/work order files/{$_FILES['add_work_order']['name']}')";[/PHP] and all the previous lines you reffer to files inside strings without the {}. that in my knowledge should do the trick
-codetaino
__________________
"God bless u all" :)
|