CREATE DEFINER=`root`@`localhost` PROCEDURE `spr_StdDelete`(IN ID INT) BEGIN DELETE FROM students WHERE ID=@ID; END
<?php include('config.php'); if (isset($_GET['ID']) && is_numeric($_GET['ID'])) { $ID = $_GET['ID']; $result = mysql_query('Call spr_StdDelete("$ID")') or die(mysql_error()); header("Location: view.php"); } else { header("Location: view.php"); } ?>
$result = mysql_query("DELETE FROM students WHERE ID=$ID") or die(mysql_error());
DELETE FROM students WHERE ID= id;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)