am trying to create a login counter but the counter number is stuck at 1 please help me and tell me wats wrong
here is the sql
visits var 255
and the coding goes on login.php
$visits = mysql_query("SELECT ibwf_users SET visits=visit+1 WHERE id='".$uid."'");
mysql_query("UPDATE ibwf_users SET visits='".($visit[0]+1)."' WHERE id='".$uid."'");
echo "°Login Counter: <b>$visits Times</b><br/>";
help please
here is the sql
visits var 255
and the coding goes on login.php
$visits = mysql_query("SELECT ibwf_users SET visits=visit+1 WHERE id='".$uid."'");
mysql_query("UPDATE ibwf_users SET visits='".($visit[0]+1)."' WHERE id='".$uid."'");
echo "°Login Counter: <b>$visits Times</b><br/>";
help please
Comment