After Updation of textbox value to database table want to pop up success message

<?php
if(isset($_POST['submit']))
{
$branch=$_POST['Region'];
if($_POST['Region'] =='' || $_POST['Region']=='ALL')
{
$Qry="select Branch_code,Palmtec_id,Download_status from tbl_download order by Branch_code,Palmtec_id";    
}
else
{
    $Qry="select Branch_code,Palmtec_id,Download_status from tbl_download where Branch_code='$branch' order by Branch_code,Palmtec_id";
}
    $macid=$_POST['brmacid'];
    if($_POST['brmacid']=='' || $_POST['brmacid']=='ALL')
    {
        $Qry.="";
    }
    else
    {
        $Qry="select Branch_code,Palmtec_id,Download_status from tbl_download where Branch_code='$branch' and Palmtec_id='$macid' order by Branch_code,Palmtec_id";
    }
    
    $up=$_POST['up'];
    if($_POST['up']=='0' || $_POST['up']=='1')
    {
    $Qry="update tbl_download set Download_status='$up' where Branch_code='$branch' and Palmtec_id='$macid' 
    (select Branch_code,Palmtec_id,Download_status from tbl_download
     where Branch_code='$branch' and Palmtec_id='$macid') 
    ";    
    }
    /*if(mssql_query($Qry))
    {
        echo '<font color="green">success</font>';
    }*/
        
    $Res    =    mssql_query($Qry);    
    //echo $Qry;
    echo "<table border ='1' align ='center' cellpadding='1' cellspacing='1'  width='900' bgcolor='#FFFFFF' style='border:1px solid #0080FF;' >"    ;
    echo "<tr><th style='background:#58ACFA;'>S.No</th>
          <th style='background:#58ACFA;'>Branch_code</th>
          <th style='background:#58ACFA;'>Palmtec_id</th>
          <th style='background:#58ACFA;'>Download_status</th></tr>";
     $i=1;
        
        while($row=mssql_fetch_assoc($Res))
        {
            ?>
            <tr bgcolor="#CEF6F5">
                <td  align="center" style="padding-right:px;text-decoration:none;" width="20">
                    <?php echo $i;?>
                </td>
                
            <td  align="center"  style="padding-left:10px;text-decoration:none;">
                    
                    <?php echo $row['Branch_code'];?>
                </td>
                <td  align="center"  style="padding-left:10px;text-decoration:none;">
                    <?php echo $row['Palmtec_id'];?>
                </td>
                
                <td  align="center"  style="padding-left:10px;text-decoration:none;">
                    <?php echo $row['Download_status'];?>
                </td>
                 
               </tr>
          <?php
          $i++;
          }            
 }
          ?>

Want a pop up saying saying Update successful after Download_status value changes on clicking submit button…Can anyone help me?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.