Ingen beskrivning

conectar.php 435B

123456789101112131415
  1. <?php
  2. $db_password = "QnJ3Uq=i7=";
  3. $db_username = "alejandro.alvarez5";
  4. $db_hostname = "localhost";
  5. $db_database = "Dato_pr";
  6. try
  7. {
  8. $dbconnection = mysqli_connect($db_hostname, $db_username, $db_password,$db_database) or $error=1;
  9. }
  10. catch(Exception $ex)
  11. {
  12. die("No pude conectar a la base de datos: " . $ex->getMessage());
  13. }
  14. mysqli_set_charset($dbconnection,"utf8");
  15. ?>