Proyecto en colaboración con OPASO

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 : database.php
  7. Description : Initialize database connection */
  8. /* set args */
  9. $server = "localhost";
  10. $username = "";
  11. $password = "";
  12. $name = "OPASO_prueba";
  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. ?>