PHP - Disfunciòn?

 
Vista:

Disfunciòn?

Publicado por gerardo medina (27 intervenciones) el 05/06/2006 02:10:52
Mi duda era con respecto entorno javascript. Ya queestoy haciendo PHP fusioando con Javascript. Ahora deseo que se muestre en el alert asì

CODIGO : A1
DESCRIPCION: Chat
WEB : www.latinchat.com

pero se muestra:

CODIGO : www.latinchat.com
DESCRIPCION: www.latinchat.com
WEB : www.latinchat.com

... y asì sucesivamente, con respectos a los otros URLs.
Es muy probablemente haya estructurado mal la matriz simplemente

<script language="Javascript">
matriz= new Array()

matriz[1,1] = "A-1"; //Codigo
matriz[2,1] = "Chat" //Descripciòn
matriz[3,1] = "www.latinchat.com" //Web

matriz[1,2] = "A-2";
matriz[2,2] = "Email"
matriz[3,2] = "www.hotmail.com"

matriz[1,3] = "A-3";
matriz[2,3] = "Conocimientos"
matriz[3,3] = "www.lawebdelprogramador.com"

matriz[1,4] = "A-4";
matriz[2,4] = "Buscador"
matriz[3,4] = "www.google.com"

matriz[1,5] = "A-5";
matriz[2,5] = "MI Dominio"
matriz[3,5] = "http://localhost"

for(var k=1; k<=5;k++)
{
alert("CODIGO: \t"+matriz[1,k]+"\nDESCRIPCION: \t "+matriz[2,k]+"\nWEB: \t"+matriz[3,k]);
}
</script>

Sì, ya sè que es màs Javascript, que PHP... Pero planteaba porque en esta foro se ve Javascript tambièn como parte del entorno. pero quisiera determinar el erro de esta natriz o la del bucle?, GRACIAS
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder