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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -