Here's the code:
Code: Select all
<?php
//I am just specifying the $id value here for testing purposes
$_GET[id] = "15";
extract($_GET);
$db = mysql_connect("localhost", "root")
or die(mysql_error);
mysql_select_db("******",$db)
or die("mysql select db fail");
if ($_GET) {
$sql = "Select appdet_id from ".$formtype." Where appdet_id = '".$id."'";
$result = mysql_query($sql,$db)
or die(mysql_error());
if (mysql_result($result,0,"appdet_id")) {
echo "You cannot enter this information again.";
}
}
?>