GIF89a php
Current File : /home/drbalajibabycent/public_html/Admin-Panel/employee4.php
<?php

   include_once('db.php');
	

	session_start();
	if(isset($_POST['submit']))
	{
		
		$id=$_POST['id'];
			


     $namez=$_POST['name'];  
     $name=str_replace("'","\'",$namez);
     
     $name1z=$_POST['name1'];  
     $name1=str_replace("'","\'",$name1z);
    
      
			
			
			
			
				$insert = $db->query("update p4 set name='$name',name1='$name1' where id='$id'");
             if($insert){
               

               header("location:Courses-view.php");exit;

            }else{
                echo  "File upload failed, please try again.";
            } 

               	header("location:Courses-view.php");exit;
			
		
	}
?>