[Phplib-users] nextid - how does it work?
Brought to you by:
nhruby,
richardarcher
From: Neha M. <ne...@sp...> - 2003-07-16 21:18:37
|
Hello, I'm trying to use nextid but even after reading the documentation notes on it, I'm still quite confused on how to use it. I have a db_sql instanced and I need to find out the next primary key in sequence in a table in my database so I can insert a row with this data as such - $db = new DB_SQL_SubClass(connection params); $nextIDinSeq = nextid("???"); \\ i have no clue what goes within the parens there $insertQuery = "insert into xyztable ('Next in Sequence') values ($nextIDinSeq)"; $db->query($insertQuery); etc etc... How do I determine what the nextid is? Help? Please? Maya |