1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<?php $linkfirst = mysql_connect('localhost', 'root', ''); if (!$linkfirst) { die('Could not connect: ' . mysql_error()); } mysql_select_db('hello', $linkfirst) or die('Could not select database.'); $firsttime = microtime(true); //$rs = mysql_query('select * from employee',$linkfirst); // ordinary query execution $rs = mysql_query('CALL get_employee()'); //stored procedure execution while($row = mysql_fetch_assoc($rs)) { echo $row['Name']; echo "<br>"; } $secondtime = microtime(true); echo $newTime = $secondtime-$firsttime; ?> |