A
Anonymous
Guest
Hello guys,
I have a script that searches MYsql for a name in the player field. It looks like this:
$result = mysql_query("SELECT * FROM $dbtable WHERE player LIKE \"%$variable%\" ORDER BY $sortby $desc" ,$db);
Now $variable is a three letter tag that is at the beginning of the name in player field. This part works fine.
I was wonder how I would go about searching for $variable (3 letter tag) at the end of the players name in player field.
thanks
I have a script that searches MYsql for a name in the player field. It looks like this:
$result = mysql_query("SELECT * FROM $dbtable WHERE player LIKE \"%$variable%\" ORDER BY $sortby $desc" ,$db);
Now $variable is a three letter tag that is at the beginning of the name in player field. This part works fine.
I was wonder how I would go about searching for $variable (3 letter tag) at the end of the players name in player field.
thanks