Ok... I've searched these forums, Google, and talked to one friend who only knows Oracle..and I can sorta make this work, but not. Basically I have my user database and I'm trying to make something like a personal's search. I then spit the data into a formatted table that you would get on a personals page with 15 entires, next 15> etc.
Username (txtBox)
First / Last (txtBox) / (txtBox)
Age Group (selBox)
City (selBox)
State (selBox)
The user can fill in 'full' or 'partial' on the text boxes, or only one and none of the others. Same for the select boxes.
I can get the username partial to come up full after submit, but the minute I add more into the mySQL statement it craps out on me. Here is a snippet of my code (it keeps going after the last comma)
$sql=mysql_db_query ("$db","SELECT * FROM myusers WHERE username LIKE '$username%', first_name LIKE '$first_name%', last_name LIKE '$last_name%',
How do I setup the SQL statement so that I can do an AND/OR type of thing w/o writing out a ton of different statement combos.
Thanks in Advance!