Jump to content

Searching


spearchilduser

Recommended Posts

Hi im really confused and annoyed

 

Im making a real estate website and im stuck ont eh searching for a house part.

 

Im trying to set up some searches on the different parts of the house usign text boxes for area and postcode and drop boxes for type and bedrooms and bathrooms

 

i now you have to set up a form with input type text and then call it a name use get/post on a php side and then  $_POST['search'];

 

But i dnt seem to be able to make a search was hoping someone was kind enough to knock me up some quick code so it is functional and makbe i can work from it

 

A;so any help towards searching using dropboxes would be awsume and if i have 2 boxes for price upper and lower how would this work

 

Much appreciated

Link to comment
Share on other sites

 

Ive gone and written my own using code available out there any chance someone can tell me whats wrong with this

while statement its telling me :

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\PostcodeSearch.php on line 32

 

while($result = mysql_fetch_array($data)) 
{
echo $result['Property_ID'];
echo " ";
echo $result['Property_Price'];
echo "";
echo $result['Type_of_Property'];
echo "";
echo $result['Number_of_Bedrooms'];
echo "";
echo $result['Number_of_Bathrooms'];
echo "";
echo $result['Type_of_Property'];
echo "";
echo "";
}

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.