Coding-related stuff
Feb. 28th, 2011 05:51 pmTried my hand at coding a PHP/MySQL search bar today. (Though it's not as though a search function is really necessary for my site...)
I managed to get the code to process individual words as separate search terms, but not if there are commas. I also can't get the code to search both blog titles AND entries yet.
I can't decide whether I want the search function to output whole blog entries, or just links to individual blog entries that match the search terms. Obviously, the latter would involve much less effort, although it would be really cool and fancy if I got the former to work with highlighting the search terms.
I managed to get the code to process individual words as separate search terms, but not if there are commas. I also can't get the code to search both blog titles AND entries yet.
I can't decide whether I want the search function to output whole blog entries, or just links to individual blog entries that match the search terms. Obviously, the latter would involve much less effort, although it would be really cool and fancy if I got the former to work with highlighting the search terms.