Thread: MySQL++

  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
    28,413
    Have you tried consulting the MySQL++ documentation?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    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, 06: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