sorry, but "id" is too short a word for the search function. I saw a post on this last summer, but can't find it using "identifier", etc
basically, if I do:
how to I find out the ID assigned to this new entry?Code:"INSERT INTO responses SET submitter_dept='$deptname', ip='$ipaddy', datetime='$stamp' ";
This is to allow for future UPDATEs in the same table for the same record a la:
Code:"UPDATE responses SET foo='$foo1', bar = '$bar1' WHERE id='$<the id>";
This is an anonymous survey, so no 'userid' is being entered into this table, but I am using SESSIONs - if you think I should pass and use a SESSION id as a column entry- instead of referencing the row's autoincrement ID--- how do I grab that badboy?











Bookmarks