I am making a tour project where I got stuck with a problem. I have created a database:
ID Source Destination
1 C1 C2
2 C3 c4
3 C3 C5
4 C4 C6
5 C8 C9
6 C2 C3
when I'm making a tour from C1->C6, it should follow the path c1->c2->c3->c4->c6. But when retrieving through a query I got conflicts when reaching c3: there is another C3->c5.
How can I overcome this problem?
first i am taking c1 as source by that checking in mysql from that i am getting destination by that destination taking as source checking related destination