php - How can I get form_ID field from table before inserting the options? -


i have 3 tables on database,

form

·form_id
·active

form_options

·form_id
·option

form_results

·form_id
·option_selected
·ip

when Ι create poll Ι need associate options created new form, Ι don't want insert first form_id field on form table, after selecting last form_id on form , inserting id on form_id on form_options table. when sending form, want new form_id on form_options same form_id on form in 1 step.

that say, should know newly created form_id on form insert same in form_id on form_options table.

i know possible in php, don't remember how.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -