Proyecto en colaboración con OPASO

config.php 676B

1234567891011121314151617181920212223
  1. <?php
  2. /* Authors : Carlos C. Corrada-Bravo
  3. David J. Ortiz-Rivera
  4. Organization : Centro de Desarrollo y Consultoria Computacional
  5. Project : OPASO Material Registry
  6. File : config.php
  7. Description : Initialize database connection. */
  8. /* Initiate values */
  9. $server = 'localhost';
  10. $username = 'david.ortiz11';
  11. $password = 'John2815/';
  12. $name = 'OPASO';
  13. /* Create connection */
  14. $db = new mysqli($server,$username,$password,$name);
  15. /* Check connection */
  16. if ($db->connect_error){
  17. die('Connection failed: ' . $db->connect_error);
  18. }
  19. // echo 'Connected successfully <br>' ;
  20. ?>