I would like to send data from my C++ app to a database via HTML form or just by and address in PHP script like index.php?mydata=something
. I'm trying to do this because sending an email from C++ was to hard for a beginner like me. I just want to send one string or if it's possible, a file.
Thanks in advance.
EDIT: Or if someone can guide me how to connect directly to the MySQL and insert the data in a specified table i woudl be more than grateful ! : )
EDIT2: I found the mysql api and have all the libraries and mysql header but i have problems with connecting to the DB. error: unresolved external symbol _mysql_init@4 referenced in function _main code : pastebin.com/TLjDRJXD