i have a text box from where the id of the user is taken
i wrote a sql query which return the id passed in text box is a teacher or student
i want to store the resulted string in a variable
eg. if pass 101 in text box the query gives me a record saying role teacher
this teacher value i want to store in a variable


Piyush PansuriyaRank #454 · 5.5K reputationPosted Apr 2, 2019, 9:54 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 3, 2019, 4:35 AM EDT
Subin ThomasRank #724 · 3.2K reputationPosted Apr 2, 2019, 11:19 PM EDT
Shraddha Patel176 reputationPosted Apr 8, 2019, 9:59 PM EDT