SFML community forums

Help => Network => Topic started by: Eevee204 on July 13, 2014, 05:43:26 am

Title: Retrieve data from database, built in class?
Post by: Eevee204 on July 13, 2014, 05:43:26 am
Hello, I am looking to retrieve data from the database and store the values into a class. I was wondering if there was a built in class which could help me with this. I was planning to return a Json string from the PHP file and then decode it with C++, but if there is something in the SFML library that can make it easier than having to decode a Json string, that be great.

Any suggestions/ideas?

Cheers
Title: Re: Retrieve data from database, built in class?
Post by: Jesper Juhl on July 13, 2014, 05:45:48 am
... something in the SFML library that can make it easier than having to decode a Json string, that be great.
Short answer: No.

Longer answer; maybe check out PicoJSON (https://github.com/kazuho/picojson). I've personally had a lot of success with that. Nice little header-only library.
Title: Re: Retrieve data from database, built in class?
Post by: Eevee204 on July 13, 2014, 05:51:12 am
Shame, thought I may as well ask before I went fiddling around with other libraries, thanks for the suggestions on the picojson, will defiantly take a look at that!