saving structures in a database and retrieve the fields data

Status
Not open for further replies.

bhan1992

Member level 1
Joined
Feb 25, 2012
Messages
34
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
Activity points
1,511
hi, i have a few structure eg

s(1).name = 'james';

s(1).num = 999;

s(2).name = 'hoper';

s(2).num = 111;

i want to save all of this this a database.

the next time i want to find the attributes, for example i find hoper in the database, i want the corresponding structure field .num to be displayed.

how can i do the above tasks? help..

thank you for your reply
 

the next time i want to find the attributes, for example i find hoper in the database, i want the corresponding structure field .num to be displayed.

what database are you using? or is it a flat file?

why do you want this? display how? where?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…