MySQL Forums
Forum List  »  General

INNER JOIN.. [*SOLVED*]
Posted by: Saulius Antibiotikas
Date: May 11, 2009 07:58AM

Hello everyone. I need to join 2 tables.

$data = mysql_fetch_array(mysql_query("SELECT `name`, `vnt`, `key` FROM `cart` WHERE `user_id`='$user_id'"));

$etc = mysql_fetch_array(mysql_query("SELECT `price` FROM `products` WHERE `key`='".$data['key']."'"));

Thank you.

*SOLVED*



Edited 2 time(s). Last edit at 05/11/2009 08:47AM by Saulius Antibiotikas.

Options: ReplyQuote


Subject
Written By
Posted
INNER JOIN.. [*SOLVED*]
May 11, 2009 07:58AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.