<?php
//extract all info from id
$empno=$_GET['id'];
//develop the SQL command to delete record
if($empno!=''){
$sql="delete from employee
where EMPNO='$empno'";
//database connection
$db=mysqli_connect("localhost","root","","mycompanyhr");
// checking database connection
if ($db==false) {
echo "Connect failed: ". mysqli_connect_error($db);
exit();
}
else {
echo "Connection successful";
}
//execute the SQL command
$rs=mysqli_query($db,$sql);
//check the execution status
if($rs==false){
echo "Record cannot be deleted!<br>";
echo "SQL Error : ".mysqli_error($db);
}
else{
echo "<br>Record for $empno deleted!<br>";
echo "<a href='simple-search.php'>
Back to the list</a>";
}
}//end NULL
?>
Web 2.0 describes the changing trends in the use of World Wide Web technology and web design that aim to enhance creativity , secure information sharing, collaboration and functionality of the web. Web 2.0 concepts have led to the development and evolution of web-based communities and hosted services , such as social-networking sites , video sharing sites , wikis , blogs . Find a website or web application that conform to the criteria of Web 2.0. Put the name of the application and the URL in the comment below. Please provide your full name and matrix number. Make sure the application you choose is not already chosen by your friend in the previous comment.
Comments
Post a Comment