MyBB Community Forums

Full Version: Fetch num rolls in database?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone.

I've installed one of the shoutboxes from mods sections and it works great for me, except for 2 things:

1) If users left the forum open, ajax would just keep updating forever
2) Unless some moderator deleted the messages, they would just keep stacking up.

The first problem i've fixed just changing the js a little bit.
I'm now trying to fix my 2nd problem. And I need "mysql_num_rows", so I can count how many rows are there and therefore, be able to delete one.
The think is that I didnt find a mysql_num_rows method. Only mysql_fetch_array and mysql_query. (At least thats all thas wiki has)

Well, I wanted to know if there is a mysql_num_rows method or do I have to create one as well? And, could anyone tell me where can I find the sql methods?

Thanks,
Yb
Here is how to use msql_num_rows in php.

http://us2.php.net/manual/en/function.my...m-rows.php