db_sample.php 214 B

123456789101112
  1. <?php
  2. $db_host = "localhost";
  3. $db_user = "";
  4. $db_pass = "";
  5. $db_data = "";
  6. $conn = mysql_connect ($db_host, $db_user, $db_pass) OR die(mysql_error());
  7. mysql_select_db ($db_data, $conn) OR die(mysql_error());
  8. ?>