Joing MYSQL row results (e.g Article info) with Multilple sub rows (e.g Comments) to one var in PHP -
tried searching, not sure if using right words.
ok want pass every announcements paired each announcements multiple comments template in 1 variable (so dont have put business logic there). ideas how this?
heres have far: http://pastebin.com/jvkxtb5a
getting errors.
regarding error, you're making array index array, can't that. you're doing in like:
$annoucementarray = array('value'); // assuming value $tmparray = array($annoucementarray => 'test'); // warning: illegal offset
you cannot use array index, in case want $annoucementarray
index of new array assigned $tmparray
.
Comments
Post a Comment