paradoxmime Posted January 9, 2010 Share Posted January 9, 2010 I have two fields directly related to each other. But the relationship is only one way. Here are the fields ['Levels'] and ['Bonus']. If changes are made to Bonus where the value =1, how do I also update the Levels field to a value of "2"? Quote Link to comment https://forums.phpfreaks.com/topic/187866-need-help-with-conditional-mysql-statement/ Share on other sites More sharing options...
Mchl Posted January 9, 2010 Share Posted January 9, 2010 Using ON UPDATE trigger Quote Link to comment https://forums.phpfreaks.com/topic/187866-need-help-with-conditional-mysql-statement/#findComment-991947 Share on other sites More sharing options...
fenway Posted January 16, 2010 Share Posted January 16, 2010 Or you can do this in application code as long as you're the only one accessing the table. Quote Link to comment https://forums.phpfreaks.com/topic/187866-need-help-with-conditional-mysql-statement/#findComment-995942 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.