raptor30506090 Posted July 18, 2012 Share Posted July 18, 2012 Im making a shopping cart so my question is $query = mysql_query("SELECT * FROM colour WHERE colour_id=".$colourID); $query = mysql_query("SELECT * FROM products WHERE id=".$id); can i make a jion so i select the product and then make a join to SELECT the colour Quote Link to comment Share on other sites More sharing options...
raptor30506090 Posted July 18, 2012 Author Share Posted July 18, 2012 Im making a shopping cart where is this going wrong? $query = mysql_query("SELECT products.title, colour.colour FROM products INNER JOIN colour ON products.colour_ref=colour.".$colour); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.