Dears ,I have following code segment:
MYSQL_ROW row;
 ptrm.tblres=mysql_list_tables(ptrm.connection2db,"%");
 cout << mysql_num_rows(ptrm.tblres);
 while (row=mysql_fetch_row(ptrm.tblres))
  for (i=0;i<mysql_num_rows(ptrm.tblres);i++)
   {
     cout <<  row[i] << endl;
   } //end for
//////
I need to print name of my tables in my database.
I have 3 tables.But it can print 2 tables,& for printting of 3th table,it
generate a Segment Fault message.
Please help me.....
Yours,Mohsen



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to