tiger1974

php connect

Jul 27th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2. $connectto="66.147.242.176:3306";
  3. /* change this to your DB user */
  4. $connectuser="";
  5. /* change this to your DB User's password */
  6. $password="";
  7. $link = mysql_connect("$connectto", "$connectuser", "$password");
  8. if ($link) { echo "Connected successfully to $connectto', '$connectuser"; }
  9. if (!$link) { die("Could not connect: " . mysql_error()); }
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment