MySQL Forums
Forum List  »  PHP

Re: Question about phpMyAdmin and statements
Posted by: Michael Pryfogle
Date: August 24, 2005 09:53AM

No, I coded the timing of each of the runs- output the time and the query involved.

foreach ($elements as $value){
$value=str_replace(";","",$value);
//capture start time
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$tstart = $mtime;
//execute mysql query
$result=mysql_query($value);
//capture end time
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$tend = $mtime;
//output the result
$error.= round(($tend - $tstart),4).": Seconds<br/> $value <br/>";
}

Options: ReplyQuote


Subject
Written By
Posted
Re: Question about phpMyAdmin and statements
August 24, 2005 09:53AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.