 |
|
Code (PHP)
<?
include "connect.php";
$Generic_Name=$_POST['txt_Generic_Name'];
$Tread_Name=$_POST['txt_Tread_Name'];
$Strenght_Num=$_POST['txt_Strenght_Num'];
$Recieve=$_POST['txt_Recieve'];
$Pay=$_POST['txt_Pay'];
$Unit=$_POST['txt_Unit'];
$Lot_Batch_No=$_POST['txt_Lot_Batch_No'];
//$Mfd_Date=$_POST['txt_LMfd_Date'];
$Exp_Date=$_POST['txt_Exp_Date'];
$Ex_Packaging=$_POST['txt_Ex_Packaging'];
$
$Mfd_Date=date("Y-m-d");
?>
<?
if ($Generic_Name=="" && $Tread_Name=="" && $Strenght_Num=="" && $Recieve==""&& $Pay=="" && $Unit=="" && $Lot_Batch_No=="" && $Exp_Date=="" && $Ex_Packaging==""){
echo "lose";
} else if($Generic_Name!="" && $Tread_Name!="" && $Strenght_Num!="" && $Recieve!=""&& $Pay!="" && $Unit!="" && $Lot_Batch_No!="" && $Exp_Date!="" && $Ex_Packaging!=""){
$Sql="INSERT INTO tbl_drug(Generic_Name,Tread_Name,Strenght_Num,Recieve,Pay,Unit,Lot_Batch_No,Exp_Date,Mfd_Date,Ex_Packaging) values ('$Generic_Name','$Tread_Name','$Strenght_Num','$Recieve','$Pay','$Unit','$Lot_Batch_No','$Exp_Date','$Mfd_Date','$Ex_Packaging')";
$query=mysql_query($Sql);
echo $Sql;
echo $$Mfd_Date;
}
?>

Tag : - - - -
|
|
 |
 |
 |
 |
Date :
2010-07-17 16:12:29 |
By :
alderman |
View :
948 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |