Question
PHP Insert Record...Need to then grab ID of new record
I'm using DW's Insert Record behavior with my registration
form. I'd like to be able to then grab this new ID that was just
created. If I add the PHP to do this ($CustomerID =
mysql_insert_id();) into the behavior code, though, it breaks the
behavior inside of DW.
The code actually will work if I run it but then everytime I ever edit this Insert Record behavior I to remove the code I added so the Insert Record behavior shows up again, then make my changes, and then add the code back when I'm done. Very annoying.
I could just write my own insert statements and not use the behavior but if there's a way around this problem I'd really rather stick to using DW's tools. That's why I use DW to begin with.
Any information would be greatly appreciated. Thanks!
The code actually will work if I run it but then everytime I ever edit this Insert Record behavior I to remove the code I added so the Insert Record behavior shows up again, then make my changes, and then add the code back when I'm done. Very annoying.
I could just write my own insert statements and not use the behavior but if there's a way around this problem I'd really rather stick to using DW's tools. That's why I use DW to begin with.
Any information would be greatly appreciated. Thanks!
