[SOLVED]Warning: Wrong parameter count for mysql_result()
Posted: Mon Aug 07, 2006 11:47 am
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
And this code is getting the error:
Thanks,
David
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
And this code is getting the error:
Code: Select all
$sql3 = "UPDATE members SET senastinloggad = NOW(), antal_logins = antal_logins+1 WHERE id = '{$_POST['username']}'";
$result3 = mysql_result($sql3) or die(mysql_error());David