PHP, MYSQL & multiple records
| From: | Curtis | Date: | Mon, 02 Apr 2001 23:14:56 +0000 |
| Subject: | PHP, MYSQL & multiple records | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-46706@lists.php.net to get a copy of this message | ||
Hello,
I don't relly get this... can sonmeone try and explain.
I have a mysql database and phtml form.
I can insert information intodatabase from the form, no problem.
UNTIL
I have a few items I want to insert multiples of ie DATE, DESCRIPTION
My table is...
photoid
photono
photodesc
photodate
My form reads...
PHOTO NO :
DATE TAKEN:
DESCRIPTION :
PHOTO NO :
DATE TAKEN:
DESCRIPTION :
PHOTO NO :
DATE TAKEN:
DESCRIPTION :
PHOTO NO :
DATE TAKEN:
DESCRIPTION :
PHOTO NO :
DATE TAKEN:
DESCRIPTION :
I am using an array in my phtml, that sorta works.
It will insert 5 records into my database, but if I only want 1 it still
inserts 5
Is there an example anyone knows of I can look at.
Thanks
Curtis