I’m very, very new to oF and one of the first projects I would like to get started on soon includes grabbing all values out of a MySQL database.
I’m using the ofxMySQL addon and apparently it seems to be connecting fine so far, thanks to this-thread. However, and I do apologize for the simplicity of this question, I haven’t really been able to figure out how to use the addon properly. Unfortunately I don’t really understand what a lot of the error messages mean yet, but if someone could give me a clue as to how I can make this work, I would really appreciate it.
As I said, all I’m trying to do is grab all the data in my database.
//connect to the database
db.ofxMySQL::connect(“127.0.0.1”, “root”, “administrator”, “database”);
//allocate a vector to hold values
db.ofxMySQL::getStrings(vals, “table”, “*”);
The last line gives me the error "no matching member function for call to ‘getStrings’.
I’m probably lacking some fundamental knowledge here. I know the newbie questions aren’t intensely popular, but I’m only posting now because I’ve had trouble finding useful tutorials and otherwise sufficient information.
I would be very grateful for any help/advice. Thanks