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 ??