Welcome Guest, Not a member yet? Register   Sign In
Cart - insert (add) item - how do you get the generated rowid?
#2

[eluser]YangHax[/eluser]
For now, I accomplished this by hacking up the library and setting the $items parameter in insert() and _insert() to be passed by reference, and then setting

$items['rowid'] = $rowid;

...right before return of _insert()

This way, I get the rowid back in the same array that I passed to insert()

Please let me know if there are any negative implication to this approach, though it seems to be working good at first glance.


Messages In This Thread
Cart - insert (add) item - how do you get the generated rowid? - by El Forum - 04-23-2011, 07:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB