Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top