MySQL Question
#2

PHP код:
new var[2];
forward OnPlayerSelected( );
public 
OnPlayerSelected( )
{
    new 
rowsfields;
    
cache_get_datarowsfields ); // fetch how many results, and fields the query returned.
    
    
if( rows ) { // if there are rows
        
new content20 ]; // new string to hold the values from the database
        
        
for( new row 0row rowsrow++ ) { // loop through all the rows, like looping through a file almost
            
            
cache_get_field_contentrow"Field1"content );  // get Field1 and store it into content
            
var[ ] = strvalcontent ); // self explanatory
            
            
cache_get_field_content(row"Field2"content); // get Field2 and store it into content
            
var[ ] = strvalcontent ); // same thing
        
}
    }
    return 
true;

Reply


Messages In This Thread
MySQL Question - by 2KY - 20.10.2012, 03:55
Re: MySQL Question - by ReneG - 20.10.2012, 06:00

Forum Jump:


Users browsing this thread: 1 Guest(s)