Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 28. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  help with triggers..i guess! :(:(

phpMyEdit Configuration     help with triggers..i guess! :(:(
Odoslať novú tému   Odpovedať na tému    
 
shve     Založený: 24.07.2010   Príspevky: 2  
Príspevok 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)
Príspevok 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  
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov