[PHP-DB] Odd MySQL Problem...

2011-10-13 Thread Jason Pruim
Hey everyone,Have a weird issue that I can't seem to figure out...Using PHP to insert phone numbers into the site... I have the Area Code, Exchange, and then dynamically create the last 4 digits... Once it's inserted it's dropping the leading zero's... Here's some samples:Copied from

Re: [PHP-DB] Odd MySQL Problem...

2011-10-13 Thread Karl DeSaulniers
Its looking for an integer not a string for the number of characters. I think.. Eg : number_pad($n, 4); On Oct 13, 2011, at 9:53 PM, Jason Pruim wrote: number_pad($n, 4); Best, Karl DeSaulniers Design Drumm http://designdrumm.com