문제

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).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top