php script creating problem to DESIGN

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
raj86
Forum Commoner
Posts: 25
Joined: Tue Sep 29, 2009 12:28 am

php script creating problem to DESIGN

Post by raj86 »

Hello friends
i am calling master page in my application.

Code: Select all

<?php
  //Apply the template
  include("master.php");
?>
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

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; ?>
please help me ..........
Attachments
error1.JPG
error1.JPG (88.23 KiB) Viewed 92 times
raj86
Forum Commoner
Posts: 25
Joined: Tue Sep 29, 2009 12:28 am

Re: php script creating problem to DESIGN

Post by raj86 »

i have around 36 Basic assets class in my screen. For testing purpose when i reduced it to 20, it is showing the screen in the master page. i do not know , weather it is a array size problem or page scrolling problem.......please help me
Post Reply