Re: help on gtk with mysql.

2006-10-19 Thread Michael Ott
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Sameer! >I am using Gtk and Mysql in that i am using combobox for > insertion into the database. > There i am getting error gtkcombo have no property named text. > are there any solutions for this. > I am also using spin buttons for ins

help on gtk with mysql.

2006-10-18 Thread sameer tandra
Hi I am sameer.      I am using Gtk and Mysql in that i am using combobox for insertion into the database. There i am getting error gtkcombo have no property named text. are there any solutions for this. I am also using spin buttons for inserting data.for this also the same error i am gett

Re: help on gtk with mysql

2006-10-17 Thread Yeti
On Tue, Oct 17, 2006 at 02:38:31PM +0300, Tor Lillqvist wrote: > > > doSQL(conn,"INSERT INTO test(id )VALUES("%s"),p"); > > How does this even compile? It cannot, there also undeclared variables (combo), nonexistent functions (strdup), broken strings, and I'm not sure if the Sameer/Prathibha un

Re: help on gtk with mysql

2006-10-17 Thread Tor Lillqvist
sameer tandra writes: > I am Prathibha. Who is Sameer then? > doSQL(conn,"INSERT INTO test(id )VALUES("%s"),p"); How does this even compile? Didn't you read my earlier reply to Sameer's question about the same issue? Didn't you understand it? --tml __

help on gtk with mysql

2006-10-17 Thread sameer tandra
Hi    I am Prathibha.I am using gtk with database as mysql.I have written the c api for connecting to the database.The problem is I need to access the string that is the currently selected option of the combo box.the null value is entering into database for the combo box. I am attaching the co

Re: help on gtk with mysql.

2006-10-16 Thread Tor Lillqvist
How about something like: char *sql = g_strdup_printf ("INSERT INTO test(id) VALUES('%s')", p); doSQL (sql); g_free (sql); You also want to check that the user entry is valid and doesn't contain things like quotes. Otherwise some joker could enter something like: '); update person set salary=100

help on gtk with mysql.

2006-10-16 Thread sameer tandra
Hi       I am Sameer.I am using gtk with database as mysql.I have written the c api for connecting to the database.The problem is values typed in the entry are not entering to the database.   I am attaching the code which i have done. please help me.   #include #include #include #include cha