sorry to bother you but I have been wrecking my brain with this issue.
I have been programming php for several years and needed some portable console apps so my natural choice was to go to c++.
Now I got stuck when trying to create an sql query for mysql that was composed of text and other variables.
int seconds = time (NULL); string characters; characters = "text from user input"; char *sqlquery = "INSERT INTO chatlog (datetime, message) VALUES ('seconds','characters')";
And I get som invalid conversion errors.
In php i would simply
$sqlquery = "INSERT INTO chatlog(date,messave) VALUES ('$seconds','$characters');
How would you go about creating this SQL query.
Any suggestions? Hints?
Thanks in advance.