function LoadStuff( ) { local db_connection = ConnectToDatabase( ); if( db_connection ) { local query_result = mysql_query( db_connection , "SELECT * FROM `table_name` WHERE `column1` = 1" ); if( query_result ) { if( mysql_num_rows( query_result ) > 0 ) { local assoc_table; while( assoc_table = mysql_fetch_assoc( query_result ) ) { // Do stuff here // assoc_table[ "column1" ] // assoc_table[ "column2" ] // assoc_table[ "column3" ] // Blah blah blah ... } } } } return false; }