user profile info in a question (php include? some sql query?)

user profile info in a question (php include? some sql query?)

by Melvin Shantz -
Number of replies: 0

So I would like to use information from a student's profile in the of a question in order to personalize it somewhat. My hope is to find someone who can provide me with some code (SQL query?, php include?) that would permit that.

A real simple example which I shall keep as an essay answer is below. What is in parentheses is what would serve would show up from the profile? Another way to handle this might be a separate table that has all kind of info that could be useful? Perhaps someone out there recognizes the hope here and has an approach figured out.

--------------

Essay question example:

Hi there (firstName),

So you are walking down the street in (city) one day and you see an old friend you asks you about (fieldOfStudy). What might you say to him in a few short sentences that quickly sums up the essence of (fieldOfStudy)?

--------------- 

Average of ratings: -