Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `<?php
- require ("../clases/Conexion.php");
- session_start();
- $host = "localhost:3307";
- $user = "root";
- $pass = "";
- $bd = "nutricion";
- $con = mysqli_connect($host,$user,$pass,$bd) or die("Error al conectar al Servidor");
- $con = new conexion();
- $con->conectar();
- if ($_SESSION["correo"]=='') {
- //header("Location:../index.php"); exit;
- echo "1";
- }
- $msql_db_query= mysqli_query($bd,"SELECT * FROM tbl_usuario WHERE correo='" . $_SESSION['correo'] . "';") or die ("Error al buscar usuario");
- if ($result) {
- $id_usuario = mysqli_result($msql_db_query(),0,'id');
- $nombre_usuario = mysqli_result($msql_db_query(),0,'nombre') . " " . mysqli_result($msql_db_query(),0,'apellido');
- }else {
- //header("Location:../index.php"); exit;
- echo "2";
- }
- date_default_timezone_set('America/Mexico_City');
- ?>`
Add Comment
Please, Sign In to add comment