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 Link to comment https://forums.phpfreaks.com/topic/265895-jion-help/ 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); Link to comment https://forums.phpfreaks.com/topic/265895-jion-help/#findComment-1362419 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.