PHP:I can't pass this value after i click a button?

sandy360

New member
$date=$_POST['date'];//this here returns the right value but when i click the tcl button
//the value of date is gone
$tcl=$_POST['tcl'];//this is ok
if(isset($_POST['tcl'])){
$query = mysql_query("SELECT * FROM arrastre WHERE tcl='$tcl' order by tcl asc");//also when i echo my query, it returns this -> Resource id #6
//im supposed to add this to my query -> AND date='$date' but since i can't pass the date value, i removed it from my query and still returns ->Resource id #6
$totalcollections = 0;
while($row=mysql_fetch_object($query)){
$orno=$row->orno;
$billnmbr=$row->billnmbr;
$payor=$row->payor;
$arrastre=$row->arrastre;
$wharfage=$row->wharfage;
$total=$row->total;
$date=$row->date;
?>
<tr>
<td align="center"><?php echo $orno;?>
<td align="left"><?php echo $billnmbr;?>
<td align="left"><?php echo $payor;?>
<td align="right"><?php echo $arrastre;?>
<td align="right"><?php echo $wharfage;?>
<td align="right"><?php echo $total;?>
</tr>
<?php }
}

?>
 
Back
Top