alles klar, damit sollte es gehen. Vielen Dank fuer die ausfuehrliche und geduldige Hilfestelleung!
Beste Gruesse
Edit: Es funktioniert jetzt. Sollte jemand das gleiche Problem haben, hier der Code:
Beste Gruesse
Edit: Es funktioniert jetzt. Sollte jemand das gleiche Problem haben, hier der Code:
Code:
sprintf(temp1, "INSERT INTO map VALUES (%d, '2000-01-01 00:00:00', '",ID); sprintf(temp2, "')"); memcpy(querystring, temp1, strlen(temp1)); memcpy(querystring + strlen(temp1), buffer, length); memcpy(querystring + strlen(temp1) + length, temp2, strlen(temp2)); if (mysql_real_query(connection, querystring, strlen(temp1) + length + strlen(temp2) )) printf("MySQL Error %u: %s\n", mysql_errno(connection), mysql_error(connection));
Comment