Chuck Haines
2006-01-24 20:05:08 UTC
------=_Part_11137_10435584.1138133100978
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hello all,
I'm trying to run the following code:
query =3D conn.query();
ttime =3D time( NULL );
sprintf( dTime, "%d000", ttime );
sql =3D "insert into Survey values ('";
sql +=3D dTime;
sql +=3D "', '";
sql +=3D dTime;
sql +=3D "', 'Information', 'Information')";
query << sql;
query.execute();
cout << "Error: " << query.error() << endl;
However, when I try and go look at the database, the information has not
been inserted into the Survey table. I have already called
conn.connectwith the correct parameters and no exceptions are being
thrown from that.
Any help would be appreciated.
Thanks,
Chuck
--
Chuck Haines
***@gmail.com
http://www.maxslack.com
-------------------------------------------
Tau Kappa Epsilon Fraternity
Fraternity For Life Alumni
-------------------------------------------
AIM: CyberGrex
YIM: CyberGrex_27
ICQ: 3707881
-------------------------------------------
GPG Fingerprint: 303A AB50 4EA9 70ED 2E30 2368 C9CD CCB5 4BD7 0989
GPG Key: http://www.maxslack.com/gpgkey.txt
------=_Part_11137_10435584.1138133100978--
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hello all,
I'm trying to run the following code:
query =3D conn.query();
ttime =3D time( NULL );
sprintf( dTime, "%d000", ttime );
sql =3D "insert into Survey values ('";
sql +=3D dTime;
sql +=3D "', '";
sql +=3D dTime;
sql +=3D "', 'Information', 'Information')";
query << sql;
query.execute();
cout << "Error: " << query.error() << endl;
However, when I try and go look at the database, the information has not
been inserted into the Survey table. I have already called
conn.connectwith the correct parameters and no exceptions are being
thrown from that.
Any help would be appreciated.
Thanks,
Chuck
--
Chuck Haines
***@gmail.com
http://www.maxslack.com
-------------------------------------------
Tau Kappa Epsilon Fraternity
Fraternity For Life Alumni
-------------------------------------------
AIM: CyberGrex
YIM: CyberGrex_27
ICQ: 3707881
-------------------------------------------
GPG Fingerprint: 303A AB50 4EA9 70ED 2E30 2368 C9CD CCB5 4BD7 0989
GPG Key: http://www.maxslack.com/gpgkey.txt
------=_Part_11137_10435584.1138133100978--