I'm still getting a syntax error after the second change??
** UPDATE**
I fixed the syntax error by removing the quotes around the 0 <> 0 in the php code, I figured as it was a number comparison the quotes wouldn't be needed. However, the page is still giving me results before I've carried out a search? If you view the page again you'll see this.