Guest User

Untitled

a guest
Nov 26th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <?php
  2. /**
  3. * Created by JetBrains PhpStorm.
  4. * User: shelan
  5. * Date: 9/15/11
  6. * Time: 5:19 PM
  7. * To change this template use File | Settings | File Templates.
  8. */
  9.  
  10. $username = "mahasen";
  11. $password = "mahasen2011";
  12. $host="shelanlkcom.fatcowmysql.com";
  13.  
  14.  
  15. $con = mysql_connect($host,$username,$password);
  16.  
  17. mysql_select_db("uni_test_database", $con);
  18.  
  19. for ($i=1; $i<=10; $i++){
  20.  
  21. $time1 = microtime();
  22. mysql_query("SELECT * FROM category_no");
  23. $time2 = microtime();
  24.  
  25. $totaltime1 = ($time2 - $time1)*1000;
  26.  
  27. echo '<BR>Parsing Time: for 1 st query' .($totaltime1/10). ' seconds.';
  28. }
  29. ?>
Add Comment
Please, Sign In to add comment