Guest User

Untitled

a guest
Oct 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2. set_time_limit(0);
  3.  
  4. $host = "";
  5. $user = "";
  6. $pass = "";
  7. $db = "";
  8. $charset = "utf8";
  9.  
  10. $link = mysql_connect($host, $user, $pass);
  11. mysql_select_db($db);
  12.  
  13. mysql_query("set names " . $charset);
  14.  
  15.  
  16. $strSql = "";
  17.  
  18. $rs = mysql_query($strSql);
  19.  
  20. $affect_rows = mysql_affected_rows();
  21.  
  22. if ("0" == $affected_rows) {
  23. while ($row = mysql_fetch_array($rs))
  24. {
  25.  
  26. }
  27. } else {
  28.  
  29. }
  30.  
  31. mysql_close($link);
  32. ?>
Add Comment
Please, Sign In to add comment