Created
          June 4, 2014 11:49 
        
      - 
      
 - 
        
Save vibhasbhingarde/381426065a3b3c275303 to your computer and use it in GitHub Desktop.  
    Code to set 1 to 0 & vice versa via mysql query
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | mysql_query("Update awards set `active` = if(`active`=0,1,0) where `id`={$_GET['id']}"); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment