This is a discussion on "[SOLVED] Array code help" within the PHP Forum section. This forum, and the thread "[SOLVED] Array code help are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Array code help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] Array code help
What code do i need to finish of my array form so once the submit button is pressed, the images are uploaded into a file called "images" & the name of the images is uploaded into the sql databse with the rest of the form!
Below is the bottom of my array code:
Cheers, |
|
|
|
#2
|
|||
|
|||
|
Re: Array code help
Dont know if i can help to much with this one.
but something like this will grab an upload file and stick it where you want it.
$file_dir = "yourlocation"; Last edited by dab42pat; Nov 23rd, 2007 at 18:06. Reason: forgot |
|
#3
|
|||
|
|||
|
Re: Array code help
Thanks m8t al give it a go
|
|
#4
|
|||
|
|||
|
Re: Array code help
I have solved this problem by simply using a different chunk of code at the botton of the array to handle file upload!!! Its to much hard work trying to mix file upload PHP code with the array code when a seperate peace of code works just fine
The array also need a record inserted to work, once the record was inserted the image section ($_POST) needed to be changd to ($_FILES) |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Fetch Array problem | Aso | PHP Forum | 3 | Dec 4th, 2007 16:13 |
| [SOLVED] select from array in drop down box | saltedm8 | PHP Forum | 6 | Dec 3rd, 2007 21:08 |
| [SOLVED] Array sorting | welshstew | Classic ASP | 6 | Nov 28th, 2007 16:45 |
| [SOLVED] saving data from one array into another | eon201 | PHP Forum | 2 | Nov 7th, 2007 09:34 |
| [SOLVED] array woes | eon201 | PHP Forum | 1 | Nov 6th, 2007 15:13 |