Created
January 7, 2014 22:33
-
-
Save juniorb2ss/8308192 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
else { | |
/** | |
* query | |
*/ | |
$ws_table_cg = $this->db->get('ws_cargos'); | |
$data = $ws_table_cg->result(); | |
/** | |
* Resultado? | |
*/ | |
if($data->count_all_results()) | |
{ | |
foreach ($data as $line) | |
{ | |
/** | |
* Resposta Válida | |
*/ | |
$objDataValid['valid'] = 'TRUE'; | |
/** | |
* Retornando array com os resultados | |
* | |
* $line->id = columm responsável pelo id do registro | |
* | |
* Exemplo Output: options[5][subarray] | |
*/ | |
$objDataValid['options'][$line->id] = $line->ws_cargo_type . "</br>"; | |
} | |
} | |
else | |
{ | |
$objDataValid['valid'] = 'FALSE'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment