From 3dd978f680076be842bfcb5c9e2cbf35b926373b Mon Sep 17 00:00:00 2001
From: admin Sometimes it's helpful to gather the field names for a particular table or with a paritcular query result. Returns an array containing the field names. This query can be called two ways: 1. You can supply the table name and call it from the $this->db-> object:Field Data
-Retrieving Field Names
-$this->db->field_names();
+$this->db->list_fields();
-$fields = $this->db->field_names('table_name');
+$fields = $this->db->list_fields('table_name');
foreach ($fields as $field)
{
@@ -90,7 +87,7 @@ from your query result object:
Sometimes it's helpful to gather the field names or other metadata, like the column type, max length, etc.
-Returns an array of objects containing field information.
+Sometimes it's helpful to gather the field names or other metadata, like the column type, max length, etc.
+Note: Not all databases provide meta-data.
-- cgit v1.2.3-24-g4f1b