
PK 
<?php
include("connexion.php");
include("head.php");
?>
<h2 id="icon_pick">Payment Added</h2>
<?php
include("connexion2.php");
$dat=date("Y-m-d");
$sql="INSERT INTO payments(invoice,pmode,pamount,tds,pdetail,pdate,branch)
VALUES('$_GET[invoice]','$_GET[pmode]', '$_GET[pamount]','$_GET[tds]','$_GET[pdetail]','$dat','$_SESSION[city]')";
$result=mysql_query($sql) or die('error');
echo "<table>
<tr><td>
Payment Added Sucessfully,<a href=billing.php>Click here</a> to Add Another Payment.
<br><br>
<a href=payment.php>Click here to be back at Payment</a><br></center></td></tr>
</table>
";
include("connexion2.php");
$sql2="UPDATE invoices SET invstatus='paid' WHERE invid='$_GET[invoice]'";
$result2=mysql_query($sql2) or die('problems upodating invoice status');
?>
<br><br><br>
<?php
include "foot.php";
?>


PK 99