Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: two minus two?
(Example: nine)

The Note You're Voting On

bert at nospam thinc dot nl
17 years ago
Watch out for the oo-style use of $db->insert_id. When the insert_id exceeds 2^31 (2147483648) fetching the insert id renders a wrong, too large number. You better use the procedural mysqli_insert_id( $db ) instead.

[EDIT by danbrown AT php DOT net: This is another prime example of the limits of 32-bit signed integers.]

<< Back to user notes page

To Top