Blue
White
Purple
Green
Red
Orange
Blue Light
White Light
Purple Light
Green Light
Red Light
Orange Light
My table's primary field ID is set int(8) unsigned zerofill. When a record is inserted, it displays like 00000002. Now I want to use its value to update another table. After recordis added. I tried to use $values['ID'] or $keys['ID'], but what I got was last integer 2, not 00000002. Any ideas?Thank you.
An excerpt from http://stackoverflow.com/questions/5256469/what-is-the-benefit-of-zerofill-in-mysql
Using ZEROFILL and a display width has no effect on how the data is stored. It affects only how it is displayed.
In other words, if you want to use zero filled value in your events you need to pad it with zeroes manually.