PHP and MySQL syntax: Difference between revisions

Jump to navigation Jump to search
Line 145: Line 145:


==== timer ====
==== timer ====
Recording the time elapsed after the sql query was executed.
PHP: [http://stackoverflow.com/questions/8310487/start-and-stop-a-timer-php Start and stop a timer PHP - Stack Overflow]
 
 
MySQL: Recording the time elapsed after the sql query was executed.
<pre>
<pre>
SELECT @timer := CURRENT_TIMESTAMP();
SELECT @timer := CURRENT_TIMESTAMP();

Navigation menu