Суть в том что часть кода выполняется а остальная нет
| Код | <script language='JavaScript' type='text/javascript' > var sel = 0; var max = <?php echo $max ?>; var photo = new Array(); var title = new Array(); var oldel = new Array(); var oldel1 = new Array(); var dolzhnost = new Array(); <?php $i=0; while ($i<$max) { ?> photo[<?php echo $i ?>]='<?php echo $allfio[$i]->photo; $i+=1;?>'; <?php } ?>
<?php $i=0; while ($i<$max) { ?> title[<?php echo $i ?>]='<?php echo $allfio[$i]->title; $i+=1;?>'; <?php } ?> document.write('Ya vypolnilso 8 '); <?php $i=0; while ($i<$max) { ?> dolzhnost[<?php echo $i ?>]='<?php echo $allfio[$i]->dolzhnost; $i+=1;?>'; <?php } ?> document.write('Ya vypolnilso 11 '); <?php $i=0; while ($i<$max) { ?> otdel[<?php echo $i ?>]='<?php echo $allfio[$i]->otdel ?>'; <? $i++; } ?> document.write('Ya vypolnilso 9 ');
document.write('Ya vypolnilso'), document.write(' '+max+ ' '+photo[12]), function tdOver(n,i){sel=i; document.getElementById(n).style.backgroundColor='#fff', document.getElementById('photocell').src="images/stories/sotrudniki/mini/"+photo[i]+"jpg", document.getElementById('fio1').innerHTML=title[i], document.getElementById('celldolzhnost').innerHTML=dolzhnost[i], document.getElementById('cellotdel').innerHTML=base64_decode(otdel[i]), document.getElementById('cellotdel1').innerHTML=otdel1[i]}; function tdOut(n){document.getElementById(n).style.backgroundColor='#b5b5b5'}; function fioOver(n,i){sel=i; document.getElementById(n).style.backgroundColor='#fff', document.getElementById('photocell').src="images/stories/sotrudniki/mini/"+photo[i]+"jpg", document.getElementById('fio1').innerHTML=title[i], document.getElementById('celldolzhnost').innerHTML=dolzhnost[i], document.getElementById('cellotdel').innerHTML=base64_decode(otdel[i]), document.getElementById('cellotdel1').innerHTML=otdel1[i]}; function fioOut(n){document.getElementById(n).style.backgroundColor='#b5b5b5'};
</script>
|
В это коде выполняется до отметки Ya vypolnilso 11 а след 9ая уже не выполняется.... почему??? Пробовал сократить БД через LIMIT заполнил все пустые поля... пробовал encode decode... Помогите плиз!!! Проект горит!!! |