Re: g++ and mySQL

2003-01-16 Thread Dileep M. Kumar
On Thu, Jan 16, 2003 at 01:54:14PM +0200, Gelu Gogancea wrote: >>>If i understand well you wish to concatenate different strings. >>>Are many options but the most handy solution is if you use "sprintf". Thanks I got the answer. sprintf(QueryStr,"INSERT INTO %s VALUES ('%s', '%s', '%s', '%s')", t

Re: g++ and mySQL]

2003-01-16 Thread Gelu Gogancea
Hi Benjamin, - Original Message - From: "Benjamin Pflugmann" <[EMAIL PROTECTED]> To: "Gelu Gogancea" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 16, 2003 4:23 PM Subject: Re: g++ and mySQL] > Hi.

Re: g++ and mySQL]

2003-01-16 Thread Benjamin Pflugmann
Hi. On Thu 2003-01-16 at 13:54:14 +0200, [EMAIL PROTECTED] wrote: > Hi, > If i understand well you wish to concatenate different strings. > Are many options but the most handy solution is if you use "sprintf". Well, in C++ you would rather use stringstream, because it has better type and bounds c

Re: g++ and mySQL]

2003-01-16 Thread Gelu Gogancea
PROTECTED] [EMAIL PROTECTED] - Original Message - From: "Dileep M. Kumar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 16, 2003 1:10 PM Subject: g++ and mySQL] > > Hello friends, > > I am trying to connect m

g++ and mySQL]

2003-01-16 Thread Dileep M. Kumar
Hello friends, I am trying to connect mySQL thru g++. I could connect the db and execute a query. But I want to get a value from key board and pass the same inside the query. ie, This is the query I am passing. mysql_query(connection,"insert into table-name values ('1','aaa','bbb','ccc')"