I have a problem about taking data from mysql(int) increase it 1 point and write it to mysql again i tried to write a code like this but it didnt work
<?
$a = "SELECT hata from counter where id = '1'";
$b = mysql_query($a);
if (($sub1 < 2) && ($sub2 < 2) && ($sub3 < 2)) {
@mysql_query("insert into accounts values('','$u_name','$pass','$name','$momname',NOW() + INTERVAL 90 DAY,NOW(),'$mail','0','0','0','0','0','0','0')");
echo "<center><b>Bilgileriniz veritabanina kaydedildi.Tesekkurler.</b></center>";
} else {
$b++;
@mysql_query("update counter set hata='$b' where id='1'");
}
?>
where did i make mistake?
?>