Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help nesting recordsets php mysql

Status
Not open for further replies.

jbtilley

Technical User
May 31, 2003
3
US
Im not sure if this can be done in php/mysql/dreamweaver, but I know it works in asp.

To make things simple let's say that I have two tables customers and orders:

customer orders
id name custID orderedThing
1 bob 1 book
2 sally 2 ruler
3 jeff 1 pencil
3 protractor

I want to display the results in a nested recordset like this:

1 bob
book
pencil
2 sally
ruler
3 jeff
protractor

Is there a way to do this with dreamweaver/php/mysql/apache?

Thanks in advance for any input.
 
yes just select the customerid from with one recordset create the other recordset as normal and cut&paste the code into a repeat region.

Cheech

[Peace][Pipe]
The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top