-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathconfig.php
More file actions
43 lines (35 loc) · 1.48 KB
/
Copy pathconfig.php
File metadata and controls
43 lines (35 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
**
** BY iCODEART
**
**********************************************************************
** REDES SOCIALES ****
**********************************************************************
** ****
** FACEBOOK: https://www.facebook.com/icodeart ****
** TWIITER: https://twitter.com/icodeart ****
** YOUTUBE: https://www.youtube.com/c/icodeartdeveloper ****
** GITHUB: https://github.com/icodeart ****
** TELEGRAM: https://telegram.me/icodeart ****
** EMAIL: info@icodeart.com ****
** ****
**********************************************************************
**********************************************************************
**/
// Datos de conexion a la base de datos
$servidor='localhost';
$usuario='root';
$pass='';
$bd='eventos';
// Nos conectamos a la base de datos
$conexion = new mysqli($servidor, $usuario, $pass, $bd);
// Definimos que nuestros datos vengan en utf8
$conexion->set_charset('utf8');
// verificamos si hubo algun error y lo mostramos
if ($conexion->connect_errno) {
echo "Error al conectar la base de datos {$conexion->connect_errno}";
}
// Url donde estara el proyecto, debe terminar con un "/" al final
$base_url="http://localhost/calendario/";
?>