" width="" height="">
*/
include_once('inc/config.php');
include_once('inc/incdb.inc');
$conexionDB = new mysqli($hostname, $username, $password, $database);
// Check for errors
if (mysqli_connect_errno()) {
echo 'Ha ocurrido un error con la siguiente descripción: ' . mysqli_connect_error() . '
Por favor contacta con el departamento de soporte.
Atte: CIO AL';
}
if (!$conexionDB->set_charset("utf8")) {
printf("Error cargando el conjunto de caracteres utf8: %s\n", $conexionDB->error);
}
if (isset($_GET['id'])) {
$register = $_GET['id'];
} else {
$register = 0;
}
$query_configura = "SELECT * FROM formas WHERE id = '" . $register . "' ";
try {
if (!$configura = $conexionDB->query($query_configura)) {
throw new Exception("Error en la Consulta " . $query_configura . " " . $conexionDB->error, 1);
}
if (!$row_configura = $configura->fetch_object()) {
throw new Exception("Error en la Consulta " . $query_configura . " " . $conexionDB->error, 1);
}
} catch (Exception $e) {
echo "Excepción capturada: ", $e->getMessage(), "\n";
}
$query_tipo = "SELECT
eventos.id,
eventos.nombre AS Evento,
eventos.url,
eventos.fecha,
eventos.tipo,
tipo_evento.nombre,
tipo_evento.id
FROM eventos INNER JOIN tipo_evento ON eventos.tipo = tipo_evento.id
WHERE eventos.id = '" . $register . "' ";
try {
if (!$tipo = $conexionDB->query($query_tipo)) {
throw new Exception("Error en la Consulta " . $query_tipo . " " . $conexionDB->error, 1);
}
if (!$row_tipo = $tipo->fetch_object()) {
throw new Exception("Error en la Consulta " . $query_tipo . " " . $conexionDB->error, 1);
}
} catch (Exception $e) {
echo "Excepción capturada: ", $e->getMessage(), "\n";
}
$query_datos = "SELECT `registro`.`id` AS `id`,`registro`.`name` AS `name`,`registro`.`organico` AS `organico`,`registro`.`lastName` AS `lastName`,`registro`.`email` AS `email`,`registro`.`phone` AS `phone`,`registro`.`company` AS `company`,`registro`.`position` AS `position`,`registro`.`street` AS `street`,`registro`.`colony` AS `colony`,`registro`.`town` AS `town`,`registro`.`state` AS `state`,`registro`.`cp` AS `cp`,`registro`.`date` AS `date`,`registro`.`password` AS `password`,`actividad`.`nombre` AS `actividad`,`no_empleados`.`no_empleados` AS `no_empleados`,`titulo`.`nombre` AS `titulo`,`eventos`.`nombre` AS `registerFrom`,`eventos`.`id` AS `evento` from ((((`registro` join `actividad` on((`registro`.`actividad` = `actividad`.`id`))) join `no_empleados` on((`registro`.`no_empleados` = `no_empleados`.`id`))) join `titulo` on((`registro`.`titulo` = `titulo`.`id`))) join `eventos` on((`registro`.`registerFrom` = `eventos`.`id`))) WHERE registro.id = '" . $_COOKIE['user_id'] . "'";
try {
if (!$datos = $conexionDB->query($query_datos)) {
throw new Exception("Error en la Consulta " . $query_datos . " " . $conexionDB->error, 1);
}
if (!$row_datos = $datos->fetch_object()) {
// throw new Exception("Error en la Consulta ".$query_datos." ".$conexionDB->error, 1);
}
} catch (Exception $e) {
echo "Excepción capturada: ", $e->getMessage(), "\n";
}
?>
Llena los siguientes datos para registrarte, el registro es sólo una vez.
Has sido registrado exitosamente, por favor revisa tu bandeja de entrada. Gracias
';
}
?>
Actualmente ya estas registrado e iniciaste sesión
tipo) {
case '1':
echo '
';
//echo '
' . $row_configura->url_success . '
';
break;
case '2':
echo '
';
break;
case '3':
echo '
';
//echo '
' . $row_configura->url_success . '
';
break;
default:
break;
}
?>
Los datos que tenemos registrados son:
nombre == 1) { ?>
Nombre: name; ?>
apellido == 1) { ?>
Apellido: lastName; ?>
email == 1) { ?>
Email: email; ?>
empresa == 1) { ?>
Empresa: company; ?>
actividad == 1) { ?>
Actividad de la empresa: actividad; ?>
no_empleados == 1) { ?>
Número de empleados de la empresa: no_empleados; ?>
titulo == 1) { ?>
Titulo: titulo; ?>
puesto == 1) { ?>
Puesto: position; ?>
telefono == 1) { ?>
Teléfono: phone; ?>
calle == 1) { ?>
Calle: street; ?>
colonia == 1) { ?>
Colonia: colony; ?>
delegacion == 1) { ?>
Delegacion o municipio: town; ?>
estado == 1) { ?>
Estado: state; ?>
cp == 1) { ?>
Codigo Postal: cp; ?>
Modificar mis datos