ZEROFILL + PHP octal notation

    Date: 11/11/05 (PHP Community)    Keywords: php, mysql, sql

    Does PHP think numbers stored in MySQL tables with ZEROFILL are octal numbers?

    For example, suppose I have a column INT(4) ZEROFILL and I insert the number 346 using PHP. MySQL turns that into 0346 - which is octal notation in PHP. Is it now going to treat 0346 as an octal number in math calculations?

    Source: http://www.livejournal.com/community/php/366491.html

« ... || Calculate Time Difference »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home