I'm trying to write a PHP script for encrypting data and saving it to a MySQL database. I've tested the script, and it can encrypt and decrypt just fine. However, when I actually try to post the data to the database, much of it gets truncated.
The SQL query that gets posted:
And what gets posted to the ccnum column:
The id and status columns are filled as they should be. Any ideas?
The SQL query that gets posted:
Code:
INSERT INTO `event_payments` (`id`, `ccnum`, `status`) VALUES (MD5(3), 'N¦0¤í?ñHŸY?\ZIJo¡9D%$~1t¿0øC?Bð|ž}OOÅ/›;ƒ¼ý?›@Ám%AÆ¡¢', 'Submitted')
And what gets posted to the ccnum column:
Code:
N
The id and status columns are filled as they should be. Any ideas?