Update query in mysql and php
update query with where condition.
<?php
$sql="update 'your table name ' set column1='value',column2='value' where name ='saddam'";
?>
update query with multi where condition.
<?php
$sql="update 'your table name ' set column1='value',column2='value' where name ='saddam' and city='delhi' ";
?>
update query with where condition.
<?php
$sql="update 'your table name ' set column1='value',column2='value' where name ='saddam'";
?>
update query with multi where condition.
<?php
$sql="update 'your table name ' set column1='value',column2='value' where name ='saddam' and city='delhi' ";
?>
Comments
Post a Comment