ThinkDing  

Go Back   ThinkDing > Member Forums > "How Do I..." Questions
Acceptance Mark
User Name
Password


Reply
 
Thread Tools Search this Thread
  #1  
Old 05-05-2006, 11:15 PM
harveyk harveyk is offline
Junior Member
 
Join Date: Oct 2005
Posts: 7
Question How do I ... ignore some db records?

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!
Reply With Quote
  #2  
Old 05-15-2006, 02:53 PM
Winston Winston is offline
Administrator
 
Join Date: Jul 2005
Posts: 46
Default

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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump



All times are GMT. The time now is 05:22 PM.


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.