Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Creating Multidimentional Array From SQL Statement


rocknbil - 4:09 pm on Jun 28, 2012 (gmt 0)


Ehh . . you just discoverd the problem with pre, you need to break long lines. :-) A mod will be along to fix it soon . . .

What is the purpose of . in $rows .= " .....

This approach (concatenating to $rows) allows you to easily do the very important if/else (what if nothing is found?)


Concatenating is "adding to a string as needed"

$me = 'Meoh ';
$me .= ' Myoh';
echo $me; // "Meoh Myoh"

The reason that I was looking at a multidimensional array was that I would be able to nest the bits of information, appropriately.


You should still be able to do that. You just "nest" your display items. In the same way you're "tracking" the outer event name, you have a variable inside to display stuff as the sessions change (or not.)


Thread source:: http://www.webmasterworld.com/php/4469810.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com