Pls this code is for point transfer from publisher to advertise but this code unable to transfer correct this pls.
PHP Code:
<?php
$getu = mysql_query("SELECT * FROM users WHERE user='$user'");
$getu1 = mysql_fetch_array($getu);
$id = $getu1['id'];
$bal = $getu1['bal'];
$pnt = $getu1['point'];
$getu = mysql_query("SELECT * FROM comp WHERE id='$id'");
$getu1 = mysql_fetch_array($getu);
$id = $getu1['id'];
$point = $getu1['point'];
$ua = mysql_query("UPDATE comp SET point=(point+$pnt) WHERE id='$id'");
$up = mysql_query("UPDATE users SET points=(pnt-$point) WHERE id='$id'");
?>
<div class='cons1'>
<form action='transfer.php' method='post'>
<b>Amount:</b><br/><input type='text' name='point' id='point' value='10'/><br/>
<div align='right'><input type='submit' name='Pub2Adv' id='Pub2Adv' value='Transfer'/></div>
</form></div>
Comment