Forum Moderators: coopster
<? $rs=@mysql_query("select * from usrinfo where UserName='$username'"); while ($ro=@mysql_fetch_array($rs)){ echo $ro[UserName]; } ?>
Thank You.
e.g., if $string_username is 'bert' then the query will give you 'robert', 'albert' or 'berthe' or whatever with 'bert' in it.
$rs=@mysql_query("select * from usrinfo where UserName LIKE '%$string_username%'");