GIF89a;
Direktori : /home/serb/www/admin/ |
Current File : /home/serb/www/admin/update_paymentdetails.php |
<? include("sessionout.php"); include("../lib/globals.php"); include("../lib/common.php"); include("../lib/functions.php"); ?> <? $id=$_GET['id']; $sql="SELECT * FROM payment_dtls WHERE id='$id'"; $res=execute_query($sql); $row=mysql_fetch_array($res); $status=$row['status']; if($status=='a') { $newstatus='u'; } else { $newstatus='a'; } $sql2="UPDATE payment_dtls SET status='$newstatus' WHERE id='$id'"; execute_query($sql2); /*$sql_postad_update="UPDATE post_ad SET status='$newstatus' WHERE id='".$row['post_id']."'"; execute_query($sql_postad_update);*/ ?> <script language="javascript"> location.href="list_payment.php"; </script>