shve
Založený: 24.07.2010
Príspevky: 2
Zaslal: 2010-07-24 14:32
Návrat hore
Odpovedať s citátom
|
i hav 2 tables called events and events_history havin the same fields...everytym a record is deleted frm events i wan 2 insert it in events_history..does ne1 knw hw to do this..plz help..!!!
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-07-24 19:20
Návrat hore
Odpovedať s citátom
|
IMHO, your approach is flawed. Instead of deleting records, create a flag field
| Kód: |
| `deleted` enum('0','1') NOT NULL default '0' |
Then in list mode set a filter to display fields having `deleted` = 0.
Instead of deleting records, set their `deleted` value to 1 and the filter you create will suppress their future display. Safer and easier that way.
|
shve
Založený: 24.07.2010
Príspevky: 2
Zaslal: 2010-07-24 23:05
Návrat hore
Odpovedať s citátom
|
lol i did figure it ot myslf..newaz thanx a lot!
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|