giridharanbtech
New member
Friends, My database have 2 tables. First table name is categories. It has two values id and name. Another table name is index it have some values and catid.
In index page all the categories are shown.I want to sort the database based on category.
I tried like this but can't. What's the problem here. Check my code. If wrong Suggest a new code.
<a href='<php select * from index where catid=1; ?>'>Adult</a><br><br><a href='<php select * from index where catid=2; ?>'>arts</a><br><br><a href='<php select * from index where catid=3; ?>'>computers</a><br><br> and so on. Pls friends
In index page all the categories are shown.I want to sort the database based on category.
I tried like this but can't. What's the problem here. Check my code. If wrong Suggest a new code.
<a href='<php select * from index where catid=1; ?>'>Adult</a><br><br><a href='<php select * from index where catid=2; ?>'>arts</a><br><br><a href='<php select * from index where catid=3; ?>'>computers</a><br><br> and so on. Pls friends