PK

ADDRLIN : /home/anibklip/pcfcindia.com/19-20/
FLL :
Current File : /home/anibklip/pcfcindia.com/19-20/searched.php

<?php 
session_start();
require_once 'common/common.php';
require_once 'common/secure.php';
include("connexion.php");
include"head.php";
?>
<table border="10"  bgcolor="#ffffff" bordercolor="#FF0000">
	<?php
	echo "<tr><td>Certificate No.</td>	<td>Date of Issue</td>	<td>Department of good</td>	<td>Quantity declared:</td>  <td>Name of fumigant:</td> <td>Date of fumigant:</td> <td>Place of fumigant:</td> <td>Dosage rate of fumigant:</td> ";
	
	if($_POST[st_date]){
		$whr.=" and dtd >= '$_POST[st_date]' ";
	}
	if($_POST[en_date]){
		$whr.=" and dtd <= '$_POST[en_date]' ";
	}

	//$sql="SELECT * From certificate WHERE issuedate='$_GET[id]'";
	echo $sql="SELECT * From invoices WHERE dtd='$_GET[id]' order by invid DESC";
	$result=mysql_query($sql) or die(mysql_error().' - error in date');
	if(mysql_num_rows($result) == 0) {
		echo "<tr><td colspan=8 align=center colour=black><br>No Result found , please Enter Another Date.<br><br></td></tr>";
	}

	while($row=mysql_fetch_array($result)){
		echo"<tr><td><b>{$row['certificateno']}</b></td> <td>{$row['dtd']}</td> <td>{$row['desgood']}</td> <td>{$row['quantitydeclared']}</td>  <td>{$row['namefumigant']}</td> <td>{$row['datefumigantion']}</td> <td>{$row['placefumigantion']}</td> <td>{$row['dosagefumigant']}</td></tr>";
	}		
	?>
	<tr><td colspan="8" align="center" height="80"><a href="search.php"><center><strong><u>Search again</u></strong></center></a></td></tr>
</table>

<?php
include"foot.php";
?>


PK 99