Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 5, 2018 8:50 AM
Views: 14
  1. include("mysql.class.php");
  2. $db = new MySQL();
  3. if (! $db->Open("test", "localhost", "root", "password")) {
  4.     $db->Kill();
  5. }
  6. echo "You are connected to the database<br />\n";