I am using PHP to update remote MySQL database, but table is not updating. PHP does not show any errors.
I am using this php code:
<?php
// php code to Update data from mysql database Table
if(isset($_POST['update']))
{
   
   $connect = mysqli_connect($hostname, $username, $password, $databaseName);
   
   // get values form input text
   
   $headingSrb = $_POST['heading_srb'];
   $paragraphSrb = $_POST['paragraph_srb'];
   $headingEng = $_POST['heading_eng'];
   $paragraphEng = $_POST['paragraph_eng'];        
   // mysql query to Update data
   $query = "UPDATE `update_slide_1` SET `heading_ser`='".$headingSrb."',`paragraph_ser`='".$paragraphSrb."', `heading_eng`='".$headingEng."', `paragraph_eng`='".$paragraphEng."' ";      
   $result = mysqli_query($connect, $query);      
   if($result)
   {
       echo '<p style="text-align: center; padding:5px; background-color: rgba(9, 143, 72, 0.6); color:white; ">Data Updated.</p> ';
       echo "$query";
   }else{
       echo '<p style="text-align: center; padding:5px; background-color: rgba(183, 0, 3, 0.7); color:white; ">Data Not Updated.</p> ';
   }
   mysqli_close($connect);
}
?>
I have entered "asd" in all form text imputs and Echo query shows that it is pulling data from my html form, so that is not a problem:
UPDATE update_slide_1 SET heading_ser='asd',paragraph_ser='asd', heading_eng='asd', paragraph_eng='asd'
Maybe I did not set up the table or columns in my database. Here is the picture of my database table: database table
 
    