Frank S.
|
| Posted: 02/22/2002, 4:09 AM |
|
Hi all,
I'm trying to modify this example by adding a couple of fields to the db.
I've done this, but the insert into the db seems to write two entries, one
with the original fields with the date and another without a date but with
all of the other fields. Is there anywhere I can look to find out why this
would be writing two records?
Using PHP 4, no templates and MySQL on Linux.
Thanks,
Frank
|
|
|
 |
Nicole
|
| Posted: 02/22/2002, 5:11 AM |
|
Frank,
check have you selected table for Record form on Default page? Initially in TellAFriend example no tables were selected as form source and insert code put in AfterInsert event. If you have selected a table two insert sql queries are built and executed. Look at AfterInsert event to find the second one.
|
|
|
 |
FS
|
| Posted: 02/23/2002, 9:38 AM |
|
Thanks Nicole,
Now that I think about it that would be the problem. I guess I just need to modify the "After Insert" code to include the new fields rather than put them in a table.
Frank
|
|
|
 |
|