A
Anonymous
Guest
am very new to php and mysql. Can anyone give me an idea how I might do the following. I am creating a system whereby researchers can change their CVs that are published on our website. I have two databases: DB1 contains all the information from each investigators CV, DB2 will be the inscription database where they will register to be able to modify their CVs.
It seems to me that the email field in both databases will be the best initial link between the two. That is, if they are inscribing (which would be into DB2) I need something like
if $Post`_[email2] = email1 in DB1 then INSERT all data from the form into DB2
BUT
what I would also like to INSERT the ID generated in the inscription (DB2) into an ID field in DB1 so I can use that ID field for further selections and queries.
I hope I have explained myself well enough. If you could just give me a little idea on how to go about this I would really appreciate it. Thanks
It seems to me that the email field in both databases will be the best initial link between the two. That is, if they are inscribing (which would be into DB2) I need something like
if $Post`_[email2] = email1 in DB1 then INSERT all data from the form into DB2
BUT
what I would also like to INSERT the ID generated in the inscription (DB2) into an ID field in DB1 so I can use that ID field for further selections and queries.
I hope I have explained myself well enough. If you could just give me a little idea on how to go about this I would really appreciate it. Thanks