kwmlr439 Posted January 23, 2013 Share Posted January 23, 2013 I have a website that runs on WordPress / PHP & MYSQL Database. I was hoping to build a search form that will access my database and grab result to display in a separate page. Any help would be greatly appreciated. Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/273513-php-mysql-search-form/ Share on other sites More sharing options...
Barand Posted January 23, 2013 Share Posted January 23, 2013 Do you have a question? Quote Link to comment https://forums.phpfreaks.com/topic/273513-php-mysql-search-form/#findComment-1407615 Share on other sites More sharing options...
kwmlr439 Posted January 23, 2013 Author Share Posted January 23, 2013 Gurus, My question is that i need help on how to build the tables and the php code. Here is my HTML Form: <form role="search" method="post" id="searchform" action="#" > <input type="hidden" value="" name="s" /> <input type="hidden" value="listing" name="post_type" /> <select name='State' id='State' class='state'> <option value="Select a State" selected>Select a State</option> </select><select name='county' id='county' class='county'> <option value="Select a County">Select a County</option> </select><select name='city' id='city' class='city'> <option value="Select a City">Select a City</option> </select> <select name='company' id='company' class='company'> <option value="Select a Company">Select a Company</option> </select><select name='agent type' id='agent type' class='agent type'> <option value="Agents Type">Agents Type</option> </select> <input type="submit" id="searchsubmit" class="searchsubmit" value="Search Real Estate Agents" /> </form> Quote Link to comment https://forums.phpfreaks.com/topic/273513-php-mysql-search-form/#findComment-1407618 Share on other sites More sharing options...
Barand Posted January 23, 2013 Share Posted January 23, 2013 We are not clairvoyant and have no idea of what data you need to store, so telling you how to design your tables is not an option. Other than to point in the direction of "data normalization". We do not write your code, at least not for free. Post in our freelance forum if that is what you need Quote Link to comment https://forums.phpfreaks.com/topic/273513-php-mysql-search-form/#findComment-1407621 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.