@JerailJan 20.2010 — #Well, if you want to match a username with one in the database you'd do [CODE]"SELECT * FROM table WHERE username = '$user'"[/CODE] The query for finding a partial match--when the mysql field simply contains part or all of the string--is: [CODE]"SELECT * FROM table WHERE username LIKE '%$user%'"[/CODE]
Depending on the application, you'd probably want to then filter the results to order them by relevance.