
23/03/2007, 17:22
|
| | Fecha de Ingreso: noviembre-2006
Mensajes: 98
Antigüedad: 18 años, 3 meses Puntos: 0 | |
ke le pasa a este codigo hola cree este codigo php en realidad soy un principiante pero cuando lo ejecuto desde el servidor me sale:
Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in c:\wamp\www\project\sugerencias.php on line 26
este es el codigo de antemano gracias
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
</head>
<body>
<?php
$nombre = "Carlos";
$apellido = "Galicia";
$num = strlen($nombre);
if ($num > 4)
{
$num1 = rand(12, 999);
$num2 = rand(2, 5);
$1 = strtolower($nombre);
$2 = strtolower($apellido);
$3 = substr($2, 0, $num2);
$su1 = "$1 $3" ;
$su2 = "$1_$3" ;
$su3 = "$num1_$2";
$su4 = strrev($1);
}
else
{
$num1 = rand(12, 999):
$1 = strtolower($nombre);
$2 = strtolower($apellido);
$3 = substr($2, 0, 3);
$su1 = "$1 $3" ;
$su2 = "$1_$3" ;
$su3 = "$num_$2";
$su4 = strrev($1);
}
?>
</body>
</html> |