- Create Table
- Create Connection
- Insert Data by Form
- Display Data
- Update Record by Form:
// modify.php & update.php
- this is a file PHP (update.php)
Download here<?php
require("connect_db.inc");
$rs=mysql_query("UPDATE tblproducts
SET productid='$proid', productname
='$proname',price='$price' ,qty='$qty'
WHERE productid='$proid'");
?>
<SCRIPT>
alert("One record modified");
window.location="view_pro_update.php";
</SCRIPT>
//modify.php6. Delete Record
//delete.php
<?phpDownload here
require("connect_db.inc");
mysql_query("delete from tblproducts
where productid='$productid'");
?>
<SCRIPT>
alert("Delecte one Record Successful!");
window.location="view_pro_update.php";
</SCRIPT>
//view_pro_update.php & Searching Product with Database
Done...!!!