Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2. session_start();
  3.  
  4. /*localhost
  5. $hostname = "localhost";
  6. $database = "bd_cursonrm_unam";
  7. $username = "root";
  8. $password = "";
  9. */
  10.  
  11. $hostname = "localhost";
  12. $database = "bd_curso_residensias";
  13. $username = "puis";
  14. $password = "puissis";
  15.  
  16. $conexion = mysql_pconnect($hostname, $username, $password) or trigger_error(mysql_error(),E_USER_ERROR);
  17. mysql_select_db($database, $conexion) or trigger_error(mysql_error(),E_USER_ERROR);
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement