PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hey,
When a person logs in i'm trying to do so a column gets a date and another column gets added with one.
So i can see last itme they logged in and how many times in total they've logged in but I get this error:
Warning: Wrong parameter count for mysql_result() in /srv/www/htdocs/index.php on line 23
$sql3 = "UPDATE members SET senastinloggad = NOW(), antal_logins = antal_logins+1 WHERE id = '{$_POST['username']}'";
$result3 = mysql_result($sql3) or die(mysql_error());
Thanks,
David
Last edited by NiGHTFiRE on Mon Aug 07, 2006 12:14 pm, edited 1 time in total.