View Single Post
  #3  
Old 07-12-2011, 03:34 PM
Criimson
Hill Giant
 
Join Date: Sep 2006
Posts: 172
Default

Well I tried your suggestions and it is still crashing zone when it is called.

After looking through mysql.h definitions I see:

MYSQL_FIELD *fields;
MYSQL_DATA *data;
MYSQL_ROWS *data_cursor;

MYSQL_ROWS - Is to pull up associated rows

To read a single cell could I use the MYSQL_FIELD or MYSQL_DATA?
Seems there should be a way.

Something like:
Code:
uint32 len_query = MakeAnyLenString(&query, "SELECT values FROM bot_variables WHERE bot_variable = 'auto_rune'");
	
	if (database.RunQuery(query, len_query, errbuf, &result)) {
	     safe_delete_array(query);
						
	value = mysql_fetch_field(result);
	if (value == "0"){
		continue;
             }
But alot of this type of coding is a learning experience for me.

Criimson
Reply With Quote