Just only the last item of the data in array goes into the database..
But not whole item of the data.
I posted the matter at bytes.com. You can find the matter at bytes.com/topic/php/answers/917748-inserting-undefined-number-images-files-its-description-into-mysql-database.
And I also posted it at http://www.dynamicdrive.com/forums/s...ad.php?t=65229. Anyone can resolve it ?
Thanks for your monitoring and managing the threads, djr33.
I was a little perturbed. (I didn't know that it doesn't like that kind of external link. I just tried to avoid posting long codes. I was greatly helped from DynamicDrive so that I made a link of it on my site.) I posted the thread on this section because I thought this section would be better to get the solution than the orther.
Well, however, I'd like to pay some money (budget U$30, payment method : Paypal, negotiable), but not much, to the resolver as I posted on the other section.
Thanks to the readers.
Thanks for your response, james438.
To make the issue simple I want to narrow the variables to one, the image_title. The image_title was initialized as global variable in the javascript in html page. The php code uses the variable in the mysql_real_escape_string() and consequently serialize().
Do I have to insert the line
Code:
$image_title[]=$_POST['image_title'];
into the php code to get the result ? Will it be that all I need ?
Thanks.
P.S. I tested it but it didn't work. The error message came out was '[] operator not supported'. What will be the problem ?