|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Show info from 2 tables
Hi !
I need some help. I'd like to show information from 2 tables . One is called categories and the other one id called subcategories. I need to show the information this way : category1 -------- subcategory1 subcategory2 subcategory3 ... category2 -------- subcategory1 subcategory2 subcategory3 ... any help ? thanks !!! |
|
#2
|
|||||
|
|||||
|
SQL Code:
Next, in the code where you read the sql results, keep track of the category you're currently outputting. If it's a different one from the last, print a new header. If not, print only the subcategory name.
__________________
This is my code. Is it not nifty? "The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools." ---Douglas Adams Join the Itsacon fanclub! Zero Tolerance: Spammers banned so far: 264
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Databases > General SQL Development > Show info from 2 tables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|