12345678910111213141516171819202122232425 |
- <?php
-
- $dbServerName = "localhost"; // $_SERVER['NAME']
- $dbUsername = "proyecto_ema"; // $_SERVER['USER'] ? victor.hernandez17
- $dbPassword = "RUYCwNr2Xwah3PET"; // $_SERVER['PASSWORD'] ? cIMkSqsqXu1vkByz
- $dbName = "proyecto.ema.upr";//marle.prueba.desarrollo"; // Name of database ? proyecto.ema.upr
-
- $connection = mysqli_connect($dbServerName, $dbUsername, $dbPassword, $dbName) or die(mysqli_error());
-
- mysqli_set_charset($connection, "utf8");
-
-
-
- // mysqli_error() vs. mysqli_connect_error() vs. mysqli_connect_errno()
-
-
-
- /*
-
- public function connect() {
- mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
- $this->connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);
- }
-
- */
|