문제

Hello I try to retrieve a value with fat free framework from mysql . Value is stored as bigint in db but when I retrieve it prints 2147483647 . Any suggestions?

도움이 되었습니까?

해결책

On a 32 bit system, 2147483647 is the largest possible integer that can be stored. You have two options.

Option 1: Convert the integer to a string using MySQL's CAST during the query, so that PHP reads/stores it as a string rather than integer

Option 2: Use a library like BC Math or GMP to manage & manipulate large integers

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top