Ver Mensaje Individual
  #8 (permalink)  
Antiguo 14/12/2015, 18:13
Avatar de pateketrueke
pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años
Puntos: 2534
Respuesta: No se envían datos a la base de datos

Pues podrías salir de dudas así:
Código PHP:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.     <html xmlns="http://www.w3.org/1999/xhtml">
  3.     <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5.     <title>Documento sin título</title>
  6.     </head>
  7.      
  8.     <body>
  9.     <?php
  10.  
  11. echo 'ESTO SE EJECUTA';
  12.  
  13.     $conexion = mysql_connect("localhost","root","")or die("problemas en la conexion");
  14.  
  15. echo 'ESTO SE EJECUTA (conexion)';
  16.  
  17.     mysql_select_db("escuela",$conexion)or die("problemas en la seleccion de base de datos");
  18.  
  19. echo 'ESTO SE EJECUTA (select_db)';
  20.  
  21.     mysql_query("INSERT INTO alumnos(CedulaE,Apellidos,Nombres,Grado,Nacionalidad,Fecha_Nac,LugarNac,Dir_hab,Telefono,Sangre,Enfermedad,Alergia,CedulaPadre,ApeP,NombreP,DireccionP,TeleP,OcupaP,TrabP,CedulaMadr,ApeM,NomM,DireM,TeleM,OcuM,TrabaM,CedR,ApeR,NomR,DireR,TeleR,OcuR,TrabaR)values (' $_POST[CedulaEscolar]' ,' $_POST[Apellidos]' ,' $_POST[Nombres]' ,' $_POST[Grado]' ,' $_POST[Nacionalidad]' ,' $_POST[FN]' ,' $_POST[L_N]' ,' $_POST[DirHab]' ,' $_POST[Telefono]' ,' $_POST[Sangre]' ,' $_POST[Enfermedades]' ,' $_POST[Alergias]' ,' $_POST[CP],' $_POST[Apellidos4]' ,' $_POST[Nombres4]' ,' $_POST[DirHab4]' ,' $_POST[Telefono2]' ,' $_POST[OcuP]' ,' $_POST[TrabaP]' ,' $_POST[CedulaM]' ,' $_POST[Apellidos2]' ,' $_POST[Nombres2]' ,' $_POST[DirHab2]' ,' $_POST[Telefono2]' ,' $_POST[OcuM]' ,' $_POST[TrabaM]' ,' $_POST[CedulaR]' ,' $_POST[Apellidos3]' ,' $_POST[Nombres3]' ,' $_POST[DirHab3]' ,' $_POST[TelefonoR]' ,' $_POST[OcuR]' ,' $_POST[TrabaR]' )",$conexion)or die("problemas en el query");
  22.  
  23. echo 'ESTO SE EJECUTA (query?)';
  24.  
  25.     mysql_close($conexion);
  26.     echo "DATOS REGISTRADOS EXITOSAMENTE";
  27.     ?>
  28.     <div align="center">
  29.       <p>&nbsp;</p>
  30.       <p><a href="index.html" class="N">Volver</a></p>
  31.     </div>
  32.     </body>
  33.     </html>

¿Se muestra algún "ESTO SE EJECUTA" o tampoco?
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.