|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
combining query results for report
i have to build a report that gives usage information about a forum. like below:
---------------------------- Forum | Posts | Replies ---------------------------- Forum1 | 34 | 35 Forum2 | 11 | 5 etc... the posts and replies are stored in 2 different tables, so since I use an older version of MySQL, i've been told that i cannot do this with 1 query. So I created 2 queries to give me the data. 1) PHP Code:
this gives me forum name and topic like so: ---------------------------- Forum | Posts | ---------------------------- Forum1 | 34 | Forum2 | 11 | etc... 2) PHP Code:
this gives me forum name and posts like so: ---------------------------- Forum | | Replies ---------------------------- Forum1 | | 35 Forum2 | | 5 etc... anyone know how i can combine the results of these 2 queries into the desired report? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > combining query results for report |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|