Re: GTK&MySql step by step



On Thu, 2001-09-27 at 17:57, youssa voila fr wrote:
Hello every one,
Please can some one help me to have a connecxtion to a MySql data base and show me how to select some items 
to put the in a DbGrid in my GTK window.
Please, I 'm newbie so help me step by step, what I must to do
Thank you very much

you can use gnome-db (http://www.gnome-db.org), which will be similar
to:

GdaConnection *cnc;
GdaRecordset *recset;
GtkWidget *dbgrid;

recset = gda_connection_execute (cnc, "SELECT * FROM table");
dbgrid = gnome_db_grid_new (recset);

cheers
-- 
Rodrigo Moya <rodrigo gnome-db org> - <rodrigo ximian com>
http://www.gnome-db.org/ - http://www.ximian.com/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]