HighDots Forums  

PHP MYSQL join tables

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss PHP MYSQL join tables in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Johnny Bagadonuts
 
Posts: n/a

Default PHP MYSQL join tables - 08-03-2003 , 01:30 PM






I am designing a product page for an e commerce site. I have a repeat
region set up in my server behavior but I am not sure how to join tables. I
have the following set up:

{rsproducts.PRODID} - {rsproducts.PRODNAME}
{rsproducts.PRODDESC}
{rsproducts.PRICE}
{rsimages.LINK}{rsimages.LARGEPIC}

Now, of course, this works fine except that I get the same
{rsimages.LINK}{rsimages.LARGEPIC}displaying to each unique item.

How to I join {rsimages.PRODID} and {rsproducts.PRODID}in order to display
the proper picture with the item?

My SQL statement is

SELECT images.LINK, images.SMALLPIC, images.LARGEPIC, product.PRODID,
product.PRICE
FROM images, product
WHERE images.PRODID = product.PRODID

Thanks in advance.



Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.