模拟实现数据库常用操作效果

来源:互联网 发布:音箱设计软件 编辑:程序博客网 时间:2024/06/03 13:40

index.php:用来显示基本操作:


<h2>常用原子操作</h2><a href="check.php?action=add">执行添加操作</a><br><br><a href="check.php?action=delete">执行删除操作</a><br><br><a href="check.php?action=search">执行查找操作</a><br><br><a href="check.php?action=update">执行更新操作</a><br><br>

check.php:打击原子操作选项,会弹出一个对话框,效果图如下:



<?php$action=$_GET["action"];switch($action){case "delete":echo "<script>alert('现在可以执行删除操作');</script>";break;case "add":echo "<script>alert('现在可以执行添加操作');</script>";break;case "search":echo "<script>alert('现在可以执行查找操作');</script>";break;case "update":echo "<script>alert('现在可以执行更新操作');</script>";break;}?>


0 0