Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/02/2005, 12:01
JuliusRisi
 
Fecha de Ingreso: diciembre-2003
Mensajes: 40
Antigüedad: 20 años, 3 meses
Puntos: 0
Es algo asi el codigo que estoy haciendo:
echo "<script language=JavaScript><!--";
$sql = "SELECT ZonaN, ZonaP, ZonaNombre FROM trackzonas ORDER BY ZonaN ASC";
$result = $db->sql_query($sql);
$filas=mysql_numrows($result);
$iz = 0;
while ($row = $db->sql_fetchrow($result)) {
$ZonaN2[$iz] = $row[ZonaN];
$ZonaP2[$iz]= $row[ZonaP];
$ZonaNombre2[$iz]= $row[ZonaNombre];
$iz++;
}
for ($j=0; $j<=$filas; $j++){
$result2 = sql_query("SELECT Cima FROM trackcatalogo where ZonaN = $j ORDER BY ZonaN ASC", $dbi);
$i = 0;
while ($row = $db->sql_fetchrow($result2)) {
$Cima2[$iz] = $row[Cima];
$i++;
}}

?>

Esto es lo que quiero sustituir por los valores de la BD, pero no me sale.

var AizkorriArray = new Array("('Selecciona país','',true,true)",
"('Ethiopia')",
"('Somalia')",
"('South Africa')",
"('Other')");

Mas matrices
.
.
.
function populateCountry(inForm,selected) {
var selectedArray = eval(selected + "Array");
while (selectedArray.length < inForm.country.options.length) {
inForm.country.options[(inForm.country.options.length - 1)] = null;
}
for (var i=0; i < selectedArray.length; i++) {
eval("inForm.country.options[i]=" + "new Option" + selectedArray[i]);
}
if (inForm.region.options[0].value == '') {
inForm.region.options[0]= null;
if ( navigator.appName == 'Netscape') {
if (parseInt(navigator.appVersion) < 4) {
window.history.go(0);
}
else {
if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
window.history.go(0);
}
}
}
}
}

y mas