Hey people. I've installed WpQuiz on my site (niiiiiiice app), and get this weird and strange error:
"Warning: Wrong parameter count for mysql_num_rows() in /questions.php on line 248"
Does this sound familiar anyone? The REALLY strange thing is... that everything works perfectly - as far as I can see.
Maybe I can alter some code - to make the error message go away... if not the error itself?
Yeah, well. Everything seems to be wrong now actually. Now it's not even marking answers as correct, even though they are. And it gets weirder. Because I've reinstalled the whole thing. Reinstalled the SQL db, user and added the user to the db. I've configured the script in one smooth flow, it made no fuzz, no nothing and said everything was dandy. I've even installed one single question... just to make it as simple as possible. But still. I'm gonna cry... wwwaaaaaaa....
If you really see no way out, I can always recreate your account. That might solve your problems. But I suggest to first take a look at the error messages, maybe even post the url to it, so we can have a look?
Ok, I found the page and registered. Can you please paste the code arround line 248 in here?
Ok. Don't shot me or anything. I've got the code. But don't really have a cue on how to isolate those lines. Should I coun't the whole thing? Shivers.
Yeah, Bondings is right. mysql_fetch_rows() expects 1 argument, which is the result id of the query. The code Bondings posted should fix this.... I guess the developers had error reporting turned off?
I just can't stand errors in PHP programs... When I write a script, I try to make sure there's no errors, even the smallest Notice-type error.