Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/06/2013, 14:15
tony8066
 
Fecha de Ingreso: junio-2013
Mensajes: 10
Antigüedad: 10 años, 10 meses
Puntos: 0
Pregunta Importante duda con php

me urge saber como quitar que te direccione a otra pagina cuando hago un insert

este es el código que utilizo:

Código PHP:
Ver original
  1. <?php
  2.     $conexion = mysql_pconnect("localhost","ticsAdmind ","45A16243F9") or die("Ha ocurrido un error en la conexion: ".mysql_error());
  3. mysql_select_db("siitprueba") or die (mysql_error());
  4. $consulta = "insert into grupo (NOMBRE, SEMESTRE, CUPO, ID_MAESTRO, ID_MATERIA, ID_PERIODO, LUNES, MARTES, MIERCOLES, JUEVES, VIERNES, SABADO)
  5. values('".$_POST["NOMBRE"]."','".$_POST["SEMESTRE"]."','".$_POST["CUPO"]."','".$_POST["ID_MAESTRO"]."','".$_POST["ID_MATERIA"]."','".$_POST["ID_PERIODO"]."','".$_POST["LUNES"]."','".$_POST["MARTES"]."','".$_POST["MIERCOLES"]."','".$_POST["JUEVES"]."','".$_POST["VIERNES"]."','".$_POST["SABADO"]."')";
  6. $ejecucion=mysql_query($consulta) or (die("No se ha insertado el registro: ".mysql_error()));
  7.    
  8.     echo "<script>alert('El Grupo Se Sa Insertado Correctamente')</script>";
  9. ?>

saludos y gracias