bilis_money Posted August 7, 2006 Share Posted August 7, 2006 hi,can someone please guide me on how to set an 'ENUM' value to '0' or '1'i have only two values '0' and '1'.How to set this using PHP?thank you very much in advance. Quote Link to comment Share on other sites More sharing options...
zq29 Posted August 7, 2006 Share Posted August 7, 2006 [code=php:0]mysql_query("UPDATE `table` SET `field`='0' WHERE `id`='$id'") or die(mysql_error());[/code] Quote Link to comment Share on other sites More sharing options...
bilis_money Posted August 7, 2006 Author Share Posted August 7, 2006 Thanks [b]SA[/b] Quote Link to comment 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.