| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Senior Member | multidimensional array not printing right Code: if($owner[$i]!=NULL){
//print 'yes';
if($report!=NULL){
if($report[0]['sector']!=$location[$i]){
print $report[0]['sector'];
$report=NULL;
} else {
$report[]=array("sector"=>$location[$i],"owner"=>$owner[$i],"ship"=>$ship[$i],"mothership"=>$mothership[$i],"name"=>$name[$i]);
}
} else {
$report=array();
$report[]=array("sector"=>$location[$i],"owner"=>$owner[$i],"ship"=>$ship[$i],"mothership"=>$mothership[$i],"name"=>$name[$i]);
}
}
Thanks. |
| |
| | #2 (permalink) |
| Account Closed | hmmm all i can tell this is doing is adding an array to the variable report which is just a variable.if theres more please show but if you want $report to print to screen try this at the end of the script PHP Code: Thats all i can say unless there is more Peace .:klavixs:. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |