spearchilduser Posted December 13, 2011 Share Posted December 13, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/253043-searching/ Share on other sites More sharing options...
spearchilduser Posted December 13, 2011 Author Share Posted December 13, 2011 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 ""; } Quote Link to comment https://forums.phpfreaks.com/topic/253043-searching/#findComment-1297336 Share on other sites More sharing options...
Drummin Posted December 13, 2011 Share Posted December 13, 2011 Hard to tell without seeing the code. How is $data defined? Quote Link to comment https://forums.phpfreaks.com/topic/253043-searching/#findComment-1297354 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.