Raised This Month: $ Target: $400
 0% 

[SQL] Duda


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lRodri.
Member
Join Date: Apr 2012
Location: Argentina
Old 08-14-2013 , 17:37   [SQL] Duda
#1

Bueno, estoy empezando con SQL, usando el sistema de Neeeeeeeeeel.-. Tengo una duda como cargar los datos. La parte de cargar es esta:

PHP Code:
case CARGAR_DATOS:
        {
            if( 
SQL_NumResultsQuery ) )
            {
                
g_idid ] = SQL_ReadResultQuery);
                
                
// Cargamos los datos de al columna 'Experiencia' en la variable global g_experiencia
                
g_experienciaid ] = SQL_ReadResultQuery);
                
func_login_successid );
            }
            
            else
            {
                
client_printidprint_chat"%s Error al cargar los datos, intente nuevamente."TAG );
                
g_estado[id] = OFFLINE;
                
show_login_menuid );
            }
        } 
Si quiero cargar las variables: g_level y g_puntos tendría que ser así?

PHP Code:
case CARGAR_DATOS:
        {
            if( 
SQL_NumResultsQuery ) )
            {
                
g_idid ] = SQL_ReadResultQuery);
                
                
// Cargamos los datos de al columna 'Experiencia' en la variable global g_experiencia
                
g_experienciaid ] = SQL_ReadResultQuery);
                
func_login_successid );
                
                
g_levelid ] = SQL_ReadResultQuery);
                
func_login_successid );
                
                
g_puntosid ] = SQL_ReadResultQuery);
                
func_login_successid );
            }
            
            else
            {
                
client_printidprint_chat"%s Error al cargar los datos, intente nuevamente."TAG );
                
g_estado[id] = OFFLINE;
                
show_login_menuid );
            }
        } 
Gracias de antemano.

Last edited by lRodri.; 08-14-2013 at 18:26.
lRodri. is offline
Send a message via MSN to lRodri.
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode