When I try thisthese with query function it is giving me an error:
query("SELECT * FROM users WHERE username='username LIKE %?'"%", $_POST['username']);
query("SELECT * FROM users WHERE username LIKE '%?%'", $_POST['username']);
I'm guessing it's something to do with the single quotes or the percent sign.