Following is my code
//FIRST UPDATE QUERY
$firstupdatequery = "UPDATE `register` SET suser ='1' ";
//Second UPDATE QUERY
$updater = "UPDATE `register` SET suser ='$suser',steamleader ='$steamleader',ipdate ='$ipdate',customer ='$customer',cperson1 ='$cperson1',mobile1 ='$mobile1',phone ='$phone',fax ='$fax',email ='$email',website ='$website',pincode ='$pincode',state ='$state',city ='$city',address ='$address',status ='$status',data_resource ='$data_resource',comments ='$comments',data_status ='$data_status',followup_date ='$followup_date',last_followup_date ='$last_followup_date',last_comment ='$last_comment',data_assign ='$data_assign',bank_id = '$bank_id' WHERE id = ".$getid."";
$exequery = $conn->query($updater);
if($exequery){
if(mysqli_affected_rows($conn) > 0){
//insert for followup recored
echo "<pre>";
print_r($conn);
echo $conn->affected_rows;
exit;
//And than I am running another insert query here
this code shows if any row updated so i run the another insert query.but problem is when i press button without changing the any value still it mysqli object affected rows
count to 1.
mysqli Object
(
[affected_rows] => 1
Why this count to 1
even i didnt changed any value.
*
NOTE: i am Updating one row above this code