Hi, I'm using php4 with postgreSQL and I needed to get the id (it's a serial field) from the insert. That is, when I do a INSERT statement the new line receives an sequencial id, I needed to get that information. Getting max(id) is not a good solution since I can't be sure that noone made an insert more or less at the same time that user 1 did so that could generate a mess.
Anyone got a good solution? Thank you
Anyone got a good solution? Thank you