kleb Posted December 27, 2011 Share Posted December 27, 2011 hi i created a page where users can reply to a post and i saved there reply in a table i called comment.when new visitors click on a topic they can see the topic and the people that comment on the topic..Now my problem is this when i click on any topic it display the comment on that topic whch is good but also display comments from other topics wchich is not supposed to be.i have tried joining the tables but i keep getting syntax errors.is joining the comment table to the topics table the solution?? if so can anyone give me the proper way of joining a table but if there is another way kindly tell me.Thanks Link to comment https://forums.phpfreaks.com/topic/253881-help-with-join-tables/ Share on other sites More sharing options...
trq Posted December 27, 2011 Share Posted December 27, 2011 You might want to post the relevant code. Link to comment https://forums.phpfreaks.com/topic/253881-help-with-join-tables/#findComment-1301551 Share on other sites More sharing options...
kleb Posted December 27, 2011 Author Share Posted December 27, 2011 hi tope,i dont hv a code nw bcos am posting through my fone but if you understand my question kindly post me the right code thanks Link to comment https://forums.phpfreaks.com/topic/253881-help-with-join-tables/#findComment-1301685 Share on other sites More sharing options...
AyKay47 Posted December 28, 2011 Share Posted December 28, 2011 the only way that we can really help you in this situation is if we see the left join attempt along with some of the relevant code. Link to comment https://forums.phpfreaks.com/topic/253881-help-with-join-tables/#findComment-1301726 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.