Code MySQL:$query1 = "SELECT category1 , category2 , category3 FROM listing WHERE username = '{$username}' AND id = {$listing_id} ";
Code MySQL:$query2 = "SELECT meaning FROM category_dict WHERE abbreviation in ('".$rows['category1']."' ,'".$rows['category2']."' ,'".$rows['category3']."')";
I have two queries as above
The table structure is as here:
listing(title, category1, category2, category3, price, closing)
category_dict(abbreviation, meaning)
I need help to combine them correctly.










Bookmarks