PDA

View Full Version : QSqlQuery: Query Problem...



TCB13
28th August 2011, 19:15
Hi,

I'm trying to interact with a MySQL DB but when I run the code I got the following:

http://img6.imageshack.us/img6/4026/sql2k.png

What's the problem :confused: I can't understand all the tutorials for MySQL interaction suggest to do this, this way or similar but the errors are the same :confused:

Thanks!

stampede
28th August 2011, 19:33
Try to #include <QVariant> in that file.

TCB13
28th August 2011, 20:01
Try to #include <QVariant> in that file.

Hi, thanks! It works fine now ;)