Welcome, Guest
Username: Password: Remember me

TOPIC: Connecting to MySQL Database

Connecting to MySQL Database 3 years 5 months ago #60232

  • milenyo
  • milenyo's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
We need to make questions that will contain the country of the person whom the survey is sent to.

When we use PHP code the codes would disapear or lost.
The administrator has disabled public write access.

Re: Connecting to MySQL Database 3 years 5 months ago #60254

  • pwmowers
  • pwmowers's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Thank you received: 2
  • Karma: 1
From the way your question is worded, I am assuming that you already know the recipient's country. You could put it in an attribute with the token table,then have a question which would then store the value of the token in the question database. I recently did a project where we encoded the survey subject this way, so that we could store and retrieve the subject with the evaluation.

If you do not know the country, you might capture the IP address, and determine it that way. There are many programs available to do this. Websites use it to target ads to your locale.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.093 seconds
Donation Image