Can anyone please tell me how to make the following code to a partial serach for a member instead of having to have the full member name first?
Code:
if ($action=="quickfind") {
$usernamecheckq = $DB_site->query("SELECT userid FROM user WHERE username='".addslashes(htmlspecialchars($membername))."'");
$usernamecheck = mysql_fetch_array($usernamecheckq);
if (!$usernamecheck[userid]) {
eval("standarderror(\"".gettemplate("error_invalidusername")."\");");
exit; }
$goto="member.php?s=$session[sessionhash]&action=getinfo&userid=$usernamecheck[userid]";
eval("standardredirect(\"".gettemplate("redirect_memberfound")."\",\"$goto\");");
}