PK

ADDRLIN : /home/anibklip/ulpc.in/2014-2015/superadmin/
FLL :
Current File : //home/anibklip/ulpc.in/2014-2015/superadmin/payadd.php

<?php
include("connexion.php");
include("head.php");
?>
    <h2 id="icon_pick">Payment Added</h2> 
<?php
$dat=date("d-m-Y");
include("connexion2.php");
$sql="INSERT INTO payments(invoice,pmode,pamount,pdetail,pdate,branch)
VALUES('$_GET[invoice]','$_GET[pmode]', '$_GET[pamount]','$_GET[pdetail]','$dat','$_SESSION[city]')";
$result=mysql_query($sql) or die('error');
echo "<center><br><br><img src=msg.jpg alt=Sucess><br><br>Payment <b>$_GET[headname]</b> 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>
";
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