I have a table named ro_meta, I just want to bind the meta_value to a variable. But this seemed very complicated lol.
SELECT meta_value FROM ro_meta WHERE meta_name = 'break_emperium' => which returns 0.
int i;
char* b;
// retrieve all rows from the mob database
if( SQL_ERROR == Sql_Query(mmysql_handle, "SELECT meta_value FROM ro_meta WHERE meta_name = 'break_emperium'"), "nothing" )
{
Sql_ShowDebug(mmysql_handle);
ShowDebug(mmysql_handle);
}
Sql_GetData(mmysql_handle, i, b, NULL);
It gives me this error
note: each undeclared identifier is reported only once for each function it appears in
Question
trickzjen23
I have a table named ro_meta, I just want to bind the meta_value to a variable. But this seemed very complicated lol.
int i; char* b; // retrieve all rows from the mob database if( SQL_ERROR == Sql_Query(mmysql_handle, "SELECT meta_value FROM ro_meta WHERE meta_name = 'break_emperium'"), "nothing" ) { Sql_ShowDebug(mmysql_handle); ShowDebug(mmysql_handle); } Sql_GetData(mmysql_handle, i, b, NULL);
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.