![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Programming Guru
![]() ![]() |
are you getting any errors with this code that you posted? if so post em, cause it makes my life a little easier :-)
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#12 |
|
Programmer
Join Date: Feb 2005
Posts: 74
Rep Power: 4
![]() |
well they're in french, but I'm sure you'll get the gist.
Erreur de syntaxe près de '.Array[name], 'c:/Program Files/EasyPHP1-7/www/work order files/' à la ligne 2 Everything else works. It inserts into the database and the files upload to where they are supposed to go. I just can't get ht path of the uploaded files to insert into the table also.
__________________
Lorem ipsum dolor sit amet... |
|
|
|
|
|
#13 |
|
Programmer
Join Date: Jan 2005
Location: Bayamon, Puerto Rico
Posts: 71
Rep Power: 4
![]() |
the error is an error of syntax for us to be able to help you please publish at least the segment of the code that the error reffer, but trying to gues maybe you are concatenating a string and the part that has the error is an array so what you should do is change Array[name] for Array['name']... again im just giving a shot blinded
publishing that line 2 of the php file would help a lottake care -codetaino PS: Any mistake is 4:00am havent sleep, please forgive me
__________________
"God bless u all" :) |
|
|
|
|
|
#14 |
|
Programmer
Join Date: Jan 2005
Location: Bayamon, Puerto Rico
Posts: 71
Rep Power: 4
![]() |
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" :) |
|
|
|
|
|
#15 |
|
Programmer
Join Date: Feb 2005
Posts: 74
Rep Power: 4
![]() |
That is Perfect! Wow, Thanks! I don't think I would have ever figured that out! :p
It works exactly how I wanted it to! ![]()
__________________
Lorem ipsum dolor sit amet... |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|