Searching Results Return Incorrect

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
admin2gd1
Forum Newbie
Posts: 15
Joined: Fri Aug 15, 2008 2:21 pm

Searching Results Return Incorrect

Post by admin2gd1 »

I am having a tiny problem getting my search results for my properties. I can't seem to get any results for any input I choose.

I have done a thorough test on my search page and these are the things that are not working. When searching for properties, the results say how many there are but don't display just those properties the user searched for.

For e.g. you search for a property and one of the values does not match any of the properties it will decide not to tell you how many properties found for any of the other values you searched for.

So for e.g. if you searched for 2 bedrooms 1 bathroom and a pool, and there were either 1 or more properties with 2 bedrooms 1 bathroom and no pool, It will say no properties found.

When a property is found even if it's one, it still fills the page with at least 10 properties and not the one it found. It should only show the properties found and not just refresh the page.

I have uploaded the files that should help any one to help me get this search page fixed. If any one can have a look at this and correct these errors, I would really appreciate it.

Thank you.
Attachments
search_page.zip
(54.83 KiB) Downloaded 3 times
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: Searching Results Return Incorrect

Post by Jade »

I know this will seem awful but I'm too lazy to download the zip file. Can you post the code in the forum? Thanks.
admin2gd1
Forum Newbie
Posts: 15
Joined: Fri Aug 15, 2008 2:21 pm

Re: Searching Results Return Incorrect

Post by admin2gd1 »

OK I have the search page complete now I need help with a keyword search.

I have tried to tweak the search page for just a simple keyword search to display anything related to the keywords the user enters but I can't get it to work. I want it to be able to display any properties the user searches by keywords and those keywords can be anything that I set for the keywords to collect by reading what ever row I choose from the properties table.

I have uploaded a copy of my script for just the keyword page and the function pages you need to setup and test out.

I really hope I can get some help on this, unlike someone who can't be bothered to download and help fix the code.
Attachments
keywords.zip
(46.75 KiB) Downloaded 1 time
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Searching Results Return Incorrect

Post by califdon »

Please try to remember that nobody here is being paid to answer people's questions or debug their scripts. Many of us actually work at jobs that pay our bills. You might get more responses if you make it as easy as possible for us to try to help you, and avoid making sarcastic remarks.
paperplate
Forum Newbie
Posts: 16
Joined: Thu Sep 04, 2008 12:15 pm

Re: Searching Results Return Incorrect

Post by paperplate »

I'm like Jade, I'm too lazy to download a 47K zipped file. If that's compressed and it's all text, there's no way I'm gonna sort through all of that.

What I'm not too lazy to do is go through a section of code you feel might be the problem.
Post Reply