PDA

View Full Version : How do I ... ignore some db records?


harveyk
05-05-2006, 11:15 PM
Hello, your search is working fine, searching through all db records. But I have some records where a field is set to 0 and I don't want those records to show up in the results. I only want them to show up if the field is set to 1. How can I edit your script? I don't really see any obvious places to add a piece to a query. Thanks!

Winston
05-15-2006, 02:53 PM
Hi there, sorry for the delay, missed this post. In the tdSearch.php file look for " WHERE " (that's spaceWHEREspace but without the quotes) and try adding "field_name = 1 AND" (without the quotes) after the WHERE bit.