Hi,
If i understand well you wish to concatenate different strings.
Are many options but the most handy solution is if you use "sprintf".
Regards,
Gelu
_____________________________________________________
G.NET SOFTWARE COMPANY
Permanent e-mail address : [EMAIL 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 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')");
>
> But I want to read the values for aaa, bbb, ccc and pass into the
> query. How can I do it. I am a just a beginner in C/C++
>
> Regards
> --
> .''`. Dileep M. Kumar <[EMAIL PROTECTED]>
> : :' : http://www.kumarayil.net
> `. `'`
> `- Debian GNU/Linux - Choice of the Freedom Lovers
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php