Ver Mensaje Individual
  #4 (permalink)  
Antiguo 26/06/2013, 08:36
sniffer_ven
 
Fecha de Ingreso: mayo-2009
Mensajes: 131
Antigüedad: 14 años, 10 meses
Puntos: 0
Respuesta: problemas con la funcion preg_match

me quito el error de la linea antes nombrada pero me paso el error a la de abajo lo coloque de esta manera

Código PHP:
  <?php
   
}
  
//Se obtienen todas las bases de datos disponibles
  
require_once('Connections/Boleteria.php');
  
mysql_select_db($database_boleteria$boleteria);
  
$diaevento=$_SESSION['fechasele'];
  
$descevento=$_SESSION['descripc'];
  
$codevento=$_SESSION['codevento'];
  
preg_match("/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/",$diaevento,$mifecha);    
  
$mifecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1];  
?>
el error se me paso para aca:

Código PHP:
 $mifecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
y dice lo siguiente:

Cita:
( ! ) Notice: Undefined offset: 3 in C:\wamp\www\BoleteriaInternet\seleccionar_sector.p hp on line 21
Call Stack
# Time Memory Function Location
1 0.0137 397000 {main}( ) ..\seleccionar_sector.php:0

( ! ) Notice: Undefined offset: 2 in C:\wamp\www\BoleteriaInternet\seleccionar_sector.p hp on line 21
Call Stack
# Time Memory Function Location
1 0.0137 397000 {main}( ) ..\seleccionar_sector.php:0

( ! ) Notice: Undefined offset: 1 in C:\wamp\www\BoleteriaInternet\seleccionar_sector.p hp on line 21
Call Stack
# Time Memory Function Location
1 0.0137 397000 {main}( ) ..\seleccionar_sector.php:0