Certo che si puo'.
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<script language="JavaScript" type="text/javascript">
<!--
var pippo = new Array();
<?
for ($i=0;$i<100;$i++) { ?>
pippo[<? print $i ?>] = <? print "$i" ?>;<? print"\n";
} ?>
//-->
</script>
</body>
</html>
e dà
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<script language="JavaScript" type="text/javascript">
<!--
var pippo = new Array();
pippo[0] = 0;
pippo[1] = 1;
pippo[2] = 2;
pippo[3] = 3;
pippo[4] = 4;
pippo[5] = 5;
pippo[6] = 6;
pippo[7] = 7;
pippo[8] = 8;
pippo[9] = 9;
pippo[10] = 10;
pippo[11] = 11;
pippo[12] = 12;
pippo[13] = 13;
pippo[14] = 14;
..
pippo[86] = 86;
pippo[87] = 87;
pippo[88] = 88;
pippo[89] = 89;
pippo[90] = 90;
pippo[91] = 91;
pippo[92] = 92;
pippo[93] = 93;
pippo[94] = 94;
pippo[95] = 95;
pippo[96] = 96;
pippo[97] = 97;
pippo[98] = 98;
pippo[99] = 99;
//-->
</script>
</body>
</html>
Basta fare la stessa cosa ma non più con un array ma con una query ed è fatta.