SHARE
TWEET

Untitled

a guest Jun 29th, 2018 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $dbname = "bryanwo1_studiohits";
  2.     $dbuser = "bryanwo1_studio";
  3.     $dbpass = "howmany";
  4.     $dbhost = "localhost";
  5.      
  6.      
  7.     $db_con = mysql_connect($dbhost, $dbuser, $dbpass);
  8.      
  9.     if(!$db_con) {
  10.         die("MYSQL FAILED TO CONNECT. BOOHOO");
  11.     }
  12.      
  13.     mysql_select_db($dbname, $db_con);
  14.      
  15.     $res = mysql_query("REPLACE INTO HitCounter (name) VALUES('MyFunkyButton');");
  16.     echo "Total Hits: ".mysql_insert_id($db_con);
  17.      
  18.     mysql_close($db_con);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top