Current location: Hot Scripts Forums » Programming Languages » PHP » Question from a newbee re. multiple recordsets


Question from a newbee re. multiple recordsets

Reply
  #1 (permalink)  
Old 07-08-03, 11:44 PM
iamatahd iamatahd is offline
New Member
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question from a newbee re. multiple recordsets

To anyone who can help -- I'm trying to load up two recordsets in Dreamweaver MX and have the second one be based on information in the first one. In other words, if record 001 in my first recordset has in once of it's columns that a related record is 010, I would like my second recordset to call up everything to do with 010.

Is this possible?

I've been at coding for all of one week. Bought Dreamweaver to build a site and quickly discovered it's limitations, so now I'm working mostly in PHP with what I can glean from these boards.

Thanks for any advice.

D
Reply With Quote
  #2 (permalink)  
Old 07-09-03, 01:21 PM
ChristGuy ChristGuy is offline
Operations Support Develo
 
Join Date: Jun 2003
Location: Rivonia, South Africa
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Greetingz...

When you build your second query you'd use the field with the first value...
PHP Code:

$recClients MySQL_Query("SELECT * FROM Clients");

$Client MySQL_Fetch_Array($recRecordSet1);

$recSales MySQL_Query("SELECT * FROM Sales WHERE ClientID=" $Client["ClientID"]); 
Hope this helps...
__________________
Till We Meet Again...
Clifford W. Hansen
Aspivia (Pty) Ltd

"We Have Seen Strange Things Today!" Luke 5:26
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 10:21 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.