Check out the LimeSurvey source code on GitHub!

Recover the id answer in the source code

More
5 years 10 months ago #58909 by Razor
Hello,

I'm using Limesurvey for a project and i would like to know where the ID of the answers is generated in the source code.
I ever looked for a SQL command like "INSERT INTO" but i did'nt find a such command in the .php files.

Thanks for the help.

Please Log in to join the conversation.

More
5 years 10 months ago #58924 by DenisChenu
If you look at the datatable structure you see id is on AUTO_INCREMENT :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
5 years 10 months ago #59014 by Razor
Okay, so i can't get information about the id ?
My objectif is to associate this ID to a pseudo that i asked in a page which i created before.

Please Log in to join the conversation.

More
5 years 10 months ago #59081 by Mazi
You can pass the ID of the current user by URL at the end of a survey. Limesurvey offers an end URL feature at the survey settings which can be used to forward the user to a customized script at the end of the survey and pass some data/IDs.
As for the answer set ID you can use ...&answerid={SAVEDID} at the end URL, see docs.limesurvey.org/Creating+a+new+surve...r+LimeSurvey#General


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 10 months ago #59137 by Razor
okay i will try it thanks a lot ! :)

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form