MySQL++

This is a discussion on MySQL++ within the C++ Programming forums, part of the General Programming Boards category; Hi, I've been asked to find a work placement as part of my course at university, so I'm helping friends ...

  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    3

    MySQL++

    Hi,

    I've been asked to find a work placement as part of my course at university, so I'm helping friends with an online shop they are trying to set up.

    They want me to make a program that automatically checks the amount they have (using their database), and updates it in the program, exporting it to a file.

    I'd also like to put some error checking and such in, to make sure both values tally up (the one in the MySQL database is the same as the one in the saved file for each program).

    One of my other friends advised me to use MySQL++, and said I only needed to link the library file.

    I have no idea how I check to make sure I've linked it all correct, because I have no idea how to start a connection. He didn't have chance to tell me how to do that before I had to leave.

    Could anyone explain to me how I open a connection and execute a query?

    The code would be very much appreciated so I can look at it and edit it to execute all the queries I require.

    Many Thanks for Any Help

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,935
    Have you tried consulting the MySQL++ documentation?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Apr 2003
    Posts
    2,662
    Based on your post, the most fruitful use of your time at university would be to take some communication and writing courses.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Change detection in MySQL.
    By amitbora27 in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 05-13-2009, 10:34 AM
  2. MySQL libraries
    By csonx_p in forum C++ Programming
    Replies: 6
    Last Post: 10-02-2008, 02:23 AM
  3. About C++ and MySQL or oether free database
    By xxxrugby in forum C++ Programming
    Replies: 18
    Last Post: 12-30-2005, 05:28 AM
  4. Get data from mysql and use in a system.
    By smaakage in forum Tech Board
    Replies: 3
    Last Post: 10-04-2005, 12:03 PM
  5. Get data from mysql and use in a system.
    By smaakage in forum C++ Programming
    Replies: 5
    Last Post: 10-02-2005, 01:25 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21