snichols Posted August 30, 2011 Share Posted August 30, 2011 This is a script I inherited. At the moment it just searches a whole DB for a search term. I want to add a drop down so that specific fields are searched. That bit is easy - the PHP coding to select just those fields to search is the problem area. I have attached the code so that you can see - any suggestions? [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/246027-tweak-existing-script-to-include-search-by-selectable-field/ Share on other sites More sharing options...
trq Posted August 30, 2011 Share Posted August 30, 2011 Any suggestions? You haven't exactly asked a question. Where are you stuck? Link to comment https://forums.phpfreaks.com/topic/246027-tweak-existing-script-to-include-search-by-selectable-field/#findComment-1263499 Share on other sites More sharing options...
snichols Posted August 30, 2011 Author Share Posted August 30, 2011 Well, I need to know what part of the code needs to be changed so that it takes the field value you select and only returns the searched value from that field. Link to comment https://forums.phpfreaks.com/topic/246027-tweak-existing-script-to-include-search-by-selectable-field/#findComment-1263501 Share on other sites More sharing options...
trq Posted August 30, 2011 Share Posted August 30, 2011 I haven't looked at the code but put simply you would need to insert the required data into the database query. Link to comment https://forums.phpfreaks.com/topic/246027-tweak-existing-script-to-include-search-by-selectable-field/#findComment-1263505 Share on other sites More sharing options...
snichols Posted August 30, 2011 Author Share Posted August 30, 2011 Well yes, I kinda know that - its a case of what code and where. Link to comment https://forums.phpfreaks.com/topic/246027-tweak-existing-script-to-include-search-by-selectable-field/#findComment-1263507 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.