print blogs based on categories selected
Posted: Tue Oct 18, 2005 8:47 am
hi all,
i added a new functionality wherein if i select few categories and say ok then blogs under those categories only will be shown in the index page at that time..i have done this by adding checkboxes near the category list in category.inc.php file....i wrote the code in such a way that once i check the boxes and press ok button the category names will be stored in the database to that particular user......and again in index page i am able to print the blogs by retrieving those categories and the userid from the database....everything is working fine...but the checkboxes are not remaining as checked..i want this to happen so that when the user logins again he can see what are the categories he previously selected....
can anyone help me in doing this???
Thanking you in advance..
i added a new functionality wherein if i select few categories and say ok then blogs under those categories only will be shown in the index page at that time..i have done this by adding checkboxes near the category list in category.inc.php file....i wrote the code in such a way that once i check the boxes and press ok button the category names will be stored in the database to that particular user......and again in index page i am able to print the blogs by retrieving those categories and the userid from the database....everything is working fine...but the checkboxes are not remaining as checked..i want this to happen so that when the user logins again he can see what are the categories he previously selected....
can anyone help me in doing this???
Thanking you in advance..