Welcome Guest, Not a member yet? Register   Sign In
new codeigniter mongoDB library
#3

[eluser]zacksyah[/eluser]
mysql function in Codeigniter I Use list_field() to return an array containing the field names. What does the equivalent in mongoDB to return an array which contains he field name? This code below I use the list_field function

function GetField($execution) {
$query = $this->db->query($execution);
if ($query->num_rows() > 0) {
return $query->list_fields();
} else {
return array();
}
}

My goal is if there is input with complex queries, the field appears dynamically in accordance with the input query like using phpmyadmin in MySQL & rockmongo in mongoDB.
If there is no equivalent query in MongoDB, Is there a trick to solve my problem?
thanks in advance.


Messages In This Thread
new codeigniter mongoDB library - by El Forum - 02-19-2012, 12:30 PM
new codeigniter mongoDB library - by El Forum - 02-21-2012, 03:26 PM
new codeigniter mongoDB library - by El Forum - 04-02-2012, 07:52 PM
new codeigniter mongoDB library - by El Forum - 04-03-2012, 06:56 AM
new codeigniter mongoDB library - by El Forum - 04-03-2012, 04:12 PM
new codeigniter mongoDB library - by El Forum - 04-04-2012, 05:57 AM
new codeigniter mongoDB library - by El Forum - 04-05-2012, 05:00 AM
new codeigniter mongoDB library - by El Forum - 04-05-2012, 05:47 AM
new codeigniter mongoDB library - by El Forum - 04-08-2012, 08:53 PM
new codeigniter mongoDB library - by El Forum - 04-29-2012, 12:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB