jwk811 Posted October 21, 2006 Share Posted October 21, 2006 An error on an account activation script.. hes the errorFatal error: Call to undefined function: () in /home/content/j/w/k/jwk811/html/membership/activate.php on line 21Heres line 21if ( $mysql_affected_rows ( $sql ) == 0 )would you happen to know whats wrong with it? Quote Link to comment https://forums.phpfreaks.com/topic/24701-another-error-should-be-something-easy-please-help/ Share on other sites More sharing options...
redbullmarky Posted October 21, 2006 Share Posted October 21, 2006 you need to remove the $ from the front of mysql_affected_rows - mysql_affected_rows is a function, not a variable so it doesn't need it. Quote Link to comment https://forums.phpfreaks.com/topic/24701-another-error-should-be-something-easy-please-help/#findComment-112501 Share on other sites More sharing options...
jwk811 Posted October 21, 2006 Author Share Posted October 21, 2006 did that and got a different errorWarning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource in /home/content/j/w/k/jwk811/html/membership/activate.php on line 21same line Quote Link to comment https://forums.phpfreaks.com/topic/24701-another-error-should-be-something-easy-please-help/#findComment-112509 Share on other sites More sharing options...
hitman6003 Posted October 22, 2006 Share Posted October 22, 2006 means that your query failed...put "or die(mysql_error())" on the end of your mysql_query line.[code]$result = mysql_query("SELECT * FROM tablename") or die(mysql_error());[/code] Quote Link to comment https://forums.phpfreaks.com/topic/24701-another-error-should-be-something-easy-please-help/#findComment-112517 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.