Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Retrieve data from database, built in class?  (Read 1954 times)

0 Members and 2 Guests are viewing this topic.

Eevee204

  • Newbie
  • *
  • Posts: 9
    • View Profile
Retrieve data from database, built in class?
« 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

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Retrieve data from database, built in class?
« Reply #1 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. I've personally had a lot of success with that. Nice little header-only library.

Eevee204

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Retrieve data from database, built in class?
« Reply #2 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!