Switch to full style
PHP examples
Post a reply

update query example

Wed Oct 26, 2011 12:50 am

Example of update query .
Code:

 
function update_ban_of_user($username,$banned)
     {
       
$query="update user set banned='$banned'  where username='$username'";
        
$result=mysql_query($query) ;
        echo 
mysql_error();
        return 
mysql_affected_rows();
     }
 




Post a reply
  Related Posts  to : update query example
 vBulletin update     -  
 Get affected rows for an update in php     -  
 update an xml file with jaxb     -  
 Update table with search box using ajax     -  
 Asp.net insert update delete Examples     -  
 update an xml file with jaxb and accessing to its elements     -  
 Update phpbb to latest version with mods     -  
 Load file and update content using AJAX and JQuery     -  
 EJB-QL IN where query     -  
 SQL LIKE query Command     -  

Topic Tags

PHP Database