Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

multiple recordsets

Participant ,
May 15, 2008 May 15, 2008
I am trying to pull from multiple tables in a mySQL database using PHP. I'd like to have various sets of information on a membership page i am building to include the specific info about a member, which is in one table, and the payment history from that member, which is a one to many relationship in another table. Should i use multiple recordsets to accomplish this or is there a SQL statement that will satisfy? When i tried to set it up, i got only a couple listings because certain members did not have any data associated in the payment table. Any help or guidance is much appreciated.

Thanks

Josh
TOPICS
Server side applications
281
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 16, 2008 May 16, 2008
LATEST
It all depends how your database is setup and you level of sql
experience. One way is to start out with what you know will work but
you know in your heart it is not effieicent. Once you get the data you
want, acquire a good book or two and experment. If you keep at it you
will get better.

fbcojman wrote:

> I am trying to pull from multiple tables in a mySQL database using
> PHP. I'd like to have various sets of information on a membership
> page i am building to include the specific info about a member, which
> is in one table, and the payment history from that member, which is a
> one to many relationship in another table. Should i use multiple
> recordsets to accomplish this or is there a SQL statement that will
> satisfy? When i tried to set it up, i got only a couple listings
> because certain members did not have any data associated in the
> payment table. Any help or guidance is much appreciated.
>
> Thanks
>
> Josh



--

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines