PK

ADDRLIN : /home/anibklip/pcfcindia.com/bkp2025-26/update/
FLL :
Current File : /home/anibklip/pcfcindia.com/bkp2025-26/update/updatereco.php

<?php
	session_start();
	require_once '../common/common.php';
	require_once '../common/secure.php';
include("../connexion.php");
include("../head.php");

$city = $_SESSION['city'];

if($city=='amritser')
{

$refer = $_SERVER['HTTP_REFERER'];

$table=$_REQUEST['table'];
$certno=$_REQUEST['certno'];
$recordno=$_REQUEST['recordno'];

if($recordno=="" || $recordno=="0"){
$sql="UPDATE $table SET reco=NULL WHERE certificateno='$certno'";
}
else{
$sql="UPDATE $table SET reco='$recordno' WHERE certificateno='$certno'";
}

$result=mysql_query($sql) or die("<br/><br/><b style='color:red'>Error! You can not assign $recordno again, If it is already assigned. Please change/remove existing record for $recordno.</b><br/><br/><p align='center'><a href=$refer>GO BACK & TRY AGAIN</a></p>");

echo "<br><br><center><b style='color:green;'>Updated sucessfully.</b><br><br></center>";

$refer = $_SERVER['HTTP_REFERER'];
print "<meta http-equiv=\"refresh\" content=\"0; url=$refer\">";

/*
header("Location: ".$refer);
return;

print "Set $recordno For $certno from $table";
*/

}
else{
	print "Sorry, Invalid Function";
}

include("../foot.php");
?>


PK 99