Jump to content

MySQL LIKE failing?


Twango
 Share

Recommended Posts

I want a Simple user search for my game.So far I have:$result = mysql_query("SELECT usr, hp, xp FROM aad WHERE usr LIKE '%$rcu%'");then I use W3school's echo to table.So I have two users, both starting with "King"but it only returns one.And when i search the full user, neither do.Help!

Link to comment
Share on other sites

what was the value of $rcu? is it a case of case-sensitivity? I'm not really sure what this means though

then I use W3school's echo to table.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...