Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/01/2010, 10:18
claudia_1109
 
Fecha de Ingreso: mayo-2008
Ubicación: Chihuahua
Mensajes: 30
Antigüedad: 18 años, 4 meses
Puntos: 1
Ayuda con código

Hola pues tengo el siguiente código:

Código PHP:
<? 
// Evitamos la inyeccion SQL

// Modificamos las variables pasadas por URL
foreach( $_GET as $variable => $valor ){
$_GET [ $variable ] = str_replace ( "'" , "'" , $_GET [ $variable ]);
}
// Modificamos las variables de formularios
foreach( $_POST as $variable => $valor ){
$_POST [ $variable ] = str_replace ( "'" , "'" , $_POST [ $variable ]);
}
?>
y me marca este error : Parse error: syntax error, unexpected T_FOREACH in /public_html/prueb/inyeccion.php on line 7

Alguien me podría ayudar ??