JFS
|
| Posted: 04/30/2002, 6:06 AM |
|
PHP4, MySQL
Can anyone tell me an easy way of duplicating a record. I want to select a record from a grid and make a duplicate of that record with one field changed when the user selects update. Any help greatly appreciated.
|
|
|
 |
Alex Alexapolsky
|
| Posted: 04/30/2002, 8:11 AM |
|
Rename Cancel button to "Duplicate" and form sql insert in "Before Cancel"
event.
|
|
|
 |
Tom
|
| Posted: 01/30/2003, 8:48 AM |
|
I also look for a solution for the same problem. Unfortunately I dont understand the answer of alex. Maybe someone can explain it.
|
|
|
 |
Rene
|
| Posted: 07/22/2003, 1:01 AM |
|
I had this problem and i figured out the way .. I created a custom insert on an updatable form .. I took the sql .. I pasted it in the custom update .. this way .. the page will think that this is an update and will execute the code which inserts the records again .. you can play with fields putting what you want ot dont want .. I hope this helps
Meshal,
|
|
|
 |