Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/05/2005, 05:33
Dannydaniel
 
Fecha de Ingreso: diciembre-2004
Mensajes: 85
Antigüedad: 19 años, 4 meses
Puntos: 0
Ayuda con este codigo....

tengo la siguiente funcion dentro de mi Php

<?php
...

function Object(identificator, URI, type) {
this.identificator = identificator;
this.URI = URI;
this.level;
this.relation;
this.type = type;
for( var i = 0; i &lt; listSearch.length; i++)
{
if(listSearch[i][1]==type) this.icon = listSearch[i][2];
}
this.children = new Array();
}

....

?>

donde esta de color azul me muestra error y me dice que falta ; pero no entiendo a donde, si esta como muestra su estructura o es que falta algo.?

Error:
Parse error syntax error, unexpected T_VAR, expectin ';'


otra pegunta se puede poner un script dentro de php, sin necesidad de poner estos:


print ('<script type="text/ecmascript">');

function a{
...
}

.....

print ('</script>');
?>