Jump to content

[SOLVED] MYSQL query questionm, please help me.


jbrill

Recommended Posts

Hey guys,

i'm currently trying to code my own shopping cart and have run into a little snag, I'm hoping someone here can help me.

 

i have two tables in my database which i need to comunicate between. The tables are as follows:

 

products -  this stores the product information (productnumber, productname, price)

cartitems - this stores the things the user has added to cart.

 

basically, what i need to do is run a query that will search through the cartitems table and find the correct info from the products table.

 

so lets say in my cart items table i have a productid that is "1" i need to search the products table and find the item where the id="1" and display the productnumber and productname.

 

how would i go about doing this?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.