Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL
Author Message
ThePiston
Worker
Worker



Joined: Dec 22, 2004
Posts: 135

PostPosted: Sun Jan 23, 2005 3:18 pm Reply with quote

I want to search through a certain field in my users' table and return only results if another field is "1". Can anyone point me to a good place for this or spit me out some code I can work on myself? I'm learning SQL ok, but my site needs to go live Tuesday night.
Thanks
 
View user's profile Send private message
PHrEEkie
Subject Matter Expert



Joined: Feb 23, 2004
Posts: 358

PostPosted: Sun Jan 23, 2005 5:45 pm Reply with quote

SELECT certain_field{, other_fields, you_want} FROM nuke_users WHERE another_field = '1' AND certain_field LIKE '%string_to_search%';

PHrEEk

_________________
PHP - Breaking your legacy scripts one build at a time. 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©