What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » php/mysql help - stats and templates?

php/mysql help - stats and templates?
Author: Message:
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: php/mysql help - stats and templates?
code:
function cnt_mysql_query($sql=FALSE)
    {
        static $queries = 0;
        if (!$sql)
        return $queries;
        $queries ++;
        return mysql_query($sql);
}

Then use cnt_mysql_query instead of mysql_query.  When you want to output the number just dont pass any arguements,
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
07-04-2005 09:43 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
php/mysql help - stats and templates? - by Fourjays on 07-04-2005 at 09:31 PM
RE: php/mysql help - stats and templates? - by Dempsey on 07-04-2005 at 09:33 PM
RE: php/mysql help - stats and templates? - by Fourjays on 07-04-2005 at 09:36 PM
RE: php/mysql help - stats and templates? - by Dempsey on 07-04-2005 at 09:43 PM
RE: php/mysql help - stats and templates? - by ShawnZ on 07-05-2005 at 02:23 AM
RE: php/mysql help - stats and templates? - by Snake on 07-05-2005 at 02:34 AM
RE: php/mysql help - stats and templates? - by Fourjays on 07-05-2005 at 10:31 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On