php script creating problem to DESIGN
Posted: Fri Dec 17, 2010 3:25 am
Hello friends
i am calling master page in my application.
i am writing some javacode due to that my master page design get improper. i do not know to resign.
here is the PHP code that is creating problem. Mainly array_push($subClasses, "[{$s['id']}, '{$s['name']}']"); is creating problem
please help me ..........
i am calling master page in my application.
Code: Select all
<?php
//Apply the template
include("master.php");
?>here is the PHP code that is creating problem. Mainly array_push($subClasses, "[{$s['id']}, '{$s['name']}']"); is creating problem
Code: Select all
<?php foreach ($deptArray['Asset'] as $a): ?>
<?php
$subClasses = array();
foreach ($a['SubClass'] as $s) {
array_push($subClasses, "[{$s['id']}, '{$s['name']}']");
}
?>
childOptions[<?php echo "'{$a['name']}'"; ?>] = [<?php echo join(',', $subClasses); ?>];
<?php endforeach; ?>