Jump to content
  • 0

How to get the return SQL from source code?


trickzjen23

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  53
  • Reputation:   0
  • Joined:  11/25/11
  • Last Seen:  

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
 
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...