Hi minicrispie!
$sql = "SELECT user.ID, user.benutzername, user.level FROM user WHERE user.benutzername = '%" . $_POST['usersearch_name'] . "%' LIMIT 10;";
Wildcard-Vergleiche werden mit dem LIKE-Schlüsselwort gemacht.
Beachte außerdem, dass dein Skript anfällig für SQL-Injection ist.
MfG H☼psel
--
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)