MySQL Escaping issues
문제
I am doing the following SQL Command:
INSERT INTO lastlogon( username, lastlogon, datechecked )
VALUES ('? Guest_SeEeTooxSafiaH? ? ? ? ? ? ', '1969-12-31', NOW( ))
Which PHPMyAdmin states was inserted correctly, no errors arise. However the username value inserted is really:
? Guest_SeEeTooxSafiaH? ?
not ? Guest_SeEeTooxSafiaH? ? ? ? ? ?
Why is that?
해결책
Is the field is set to VARCHAR(25) ? If so I believe it will disregard anything past the first 25 characters. The fix woudl be set it to VARCHAR(50).
제휴하지 않습니다 StackOverflow