$result = mysql_query("SELECT `id`,`loginstatus` FROM `users` WHERE `username`='".$login_username."' AND `password`='".$encpassword."'");
Is it just a case of changing it to
$start = microtime(true);
$result = mysql_query("SELECT `id`,`loginstatus` FROM `users` WHERE `username`='".$login_username."' AND `password`='".$encpassword."'");
echo microtime(true) - $start;
And should I be ending the timer there, or should I do it once checks have been carried out? e.g.
if(mysql_num_rows($result)==1){
echo microtime(true) - $start;
..
Lastly, instead of echoing, is there anyway I can write it to a log file or something instead?
Cheers

New Topic/Question
Reply




MultiQuote







|