Welcome Guest, Not a member yet? Register   Sign In
Get only specific fields using getFieldData?
#1

I can get all "information_schema.columns" using:
PHP Code:
$this->db->getFieldData$table ); 
But, how do I get only info on specific columns, like 'name' and 'type'.
I'm looking for the equivalent of:

PHP Code:
EXAMPLESELECT column_namedata_type FROM information_schema.columns WHERE table_name '$table'


By default I get all these:
Code:
default, max_length, name, nullable, primary_key, type

I'm only interested in:
Code:
name, type
Reply




Theme © iAndrew 2016 - Forum software by © MyBB