View Single Post
Old 05-24-2004, 02:28 PM   #6 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
(mental note taken on the odbc dll thing.. have to keep that in mind for the future )

Quote:
you will be doing things a little differently, but not much. you don't have access to some of the cool mysql features like mysql_insert_id()
Yeah, that part sucks, although I believe both pear and ADODB support virtual Insert_ID support. (just a guess with pear, I know ado works) eg: Instead of using the built-in `auto_increment` functionality, the ado class stores and manages ID's in a table. So you just call something like $id = $db->GenID('field_name'); to get your virtual auto_increment value to use. Or $id = $db->Link_ID->Insert_ID(); for the last ID used. (PO_Insert_ID() for the portable table-based ID's)

r
idx is offline   Reply With Quote