Server/database interaction in C++ using sockets

Moderator
Posts: 373
Joined: 2006.08
Post: #1
Well, I'm working on the multiplayer part of my game now, and I've gotten the server to the point that it will accept connections and receive and send data from and to the client. It seems that the next logical step would be to access a database and withdraw information so that I can make a login screen that works Smile
How would I go about searching a database from a server and getting the information that I want? I'm pretty good at PHP, so I know most of the general information about connecting to a database and withdrawing information from it (I always used MySQL databases).
The server is written in C++ and uses the WinSock library, but the client is made for Windows and the Mac (or will be made for the mac, I'm still working on that...)
Any links or help would be appreciated Smile
Thanks,
-wyrmmage

Worlds at War (Current Project) - http://www.awkward-games.com/forum/
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
If you're using a MySQL database, you'll be using the MySQL API to connect to your database and send queries. I'd suggest reading their documentation.
Quote this message in a reply
Moderator
Posts: 373
Joined: 2006.08
Post: #3
Thank you Smile I've found it and am experimenting on using MySQL++
-wyrmmage

Worlds at War (Current Project) - http://www.awkward-games.com/forum/
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  CrystalEngine server solution for any game project Aldex 0 3,384 Sep 1, 2011 01:45 AM
Last Post: Aldex
  P2P or Client/Server? TokyoDan 2 4,620 Aug 3, 2009 06:15 AM
Last Post: georgiph
  Connect to Server from Iphone BugSniper 6 9,355 Jul 15, 2009 04:57 PM
Last Post: BugSniper
  Cocoa/Objective-C and TCP Sockets... TimMcD 2 6,117 Jun 13, 2009 06:15 PM
Last Post: TimMcD
  Server architecture advice needed :) wyrmmage 2 4,624 Jan 25, 2007 10:57 AM
Last Post: wyrmmage