<?php include "../dll/config.php"; include "../dll/clase1.php"; extract($_POST); $miconexion = new DB_mysql(); $miconexion->conectar($dbname, $dbhost, $dbuname, $dbpass); $miconexion->consulta("insert into inscritos values('','{$nombres}','{$apellidos}','{$ceduladni}','{$email}','{$tandem}','{$presicion}','{$distancia}','{$pais}','{$ciudad}','{$club}','{$direccion}','{$seguro}','{$alergia}','{$celular}','{$sangre}','{$parapente}','{$homologacion}','{$colores}','{$telef1}','{$telef2}','{$telef3}',NOW())"); echo '<script>alert("Datos guardados correctamente..")</script>'; echo "<script>location.href='../inscritos.php'</script>";
<?php include "coneccion/config.php"; include "coneccion/clases_mysql.php"; extract($_POST); $miconexion = new DB_mysql(); $miconexion->conectar($dbname, $dbhost, $dbuser, $dbpass); $b = $_POST['cedula']; $c = $_POST['nombres']; $d = $_POST['apellidos']; $e = $_POST['telefono']; $f = $_POST['email']; $G = $_POST['NumMesaR']; $sql = "INSERT INTO clientes (CEDULA, NOMBRES, APELLIDOS, TELEFONO, EMAIL) VALUES ('{$b}','{$c}','{$d}','{$e}','{$f}')"; $miconexion->consulta($sql); $sql = "INSERT INTO realizan (CEDULA, ID_MESA) VALUES ('{$b}','{$g}')"; $miconexion->consulta($sql); echo '<script>alert("Se registro satisfactoriamente la informacion...")</script>'; echo "<script>location.href='gestionMesas.php'</script>";
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="css/estilos.css"> </head> <body> <header> <h1><?php echo $site_name; ?> </h1> </header> <nav> <a href="../" title="">Home</a> <a href="/" title="">Formulario</a> <a href="inscritos.php" title="">Inscritos</a> </nav> <section id="contenedor"> <h2>Inscritos del evento</h2> <?php $miconexion = new DB_mysql(); $miconexion->conectar($dbname, $dbhost, $dbuname, $dbpass); //$miconexion->consulta("select * from inscritos"); $miconexion->consulta("select id '#', nombres 'NOMBRES', apellidos 'APELLIDOS', pais 'PAIS', club 'CLUB PERTENECIENTE', parapente 'PARAPENTE', homologacion 'HOLOGOCACION' from inscritos"); $miconexion->verconsulta(); ?> </section> <hr> <footer id="pie"> Desarrollado por: <a href="http://www.loxatec.com">Loxatec</a> </footer> </body> </html>