Re: [PHP] Limit Local Search to Content

2009-03-26 Thread Stuart
2009/3/26 George Langley george.lang...@shaw.ca:        Hi all! Am building a Search feature following the excellent tutorial at: http://www.oreillynet.com/pub/a/php/2002/10/24/simplesearchengine.html It loops through a page and stores the words found in a mySQL database.        I have

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
2009/3/26 George Langley george.lang...@shaw.ca: How do I STOP it? Is it permissible to add the id again in the closing div tag ie /div id=divContent. From: Stuart stut...@gmail.com You can't have any extra info in a closing HTML tag. This problem is usually handled using comments.

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
- Original Message - From: Stuart stut...@gmail.com You can't have any extra info in a closing HTML tag. This problem is usually handled using comments. Something like the following... div id=divContent !-- content begin -- sofihsod hiosdh sdh gus us u sg !-- content end

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread Ashley Sheridan
What about storing all of the page content in the database to start with, then searching with a mysql statement is a breeze! On Thu, 2009-03-26 at 16:29 -0600, George Langley wrote: - Original Message - From: Stuart stut...@gmail.com You can't have any extra info in a closing HTML

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
Hi Ashley. That's what I'm doing, but want to limit what gets stored to just the content. Every page has a drop-down menu of, for instance, various cities, so I want to exclude that part of the page in my search terms. I don't want every page to think it has content on Calgary, Hamburg,