IF in MySql Query
Posted: Sat Apr 12, 2003 5:49 am
I know this may be a stupid question but here goes...
Is there a way to use IF, ELSE etc. in a MySql query in PHP ?
I need to check each variable before updating a field in the DB. I know I can make a Query per IF ELSE but if I could incorporate it in one query it would be great.
Is there a way to use IF, ELSE etc. in a MySql query in PHP ?
I need to check each variable before updating a field in the DB. I know I can make a Query per IF ELSE but if I could incorporate it in one query it would be great.