Posted by Steve on 10/14/06 00:01
again, sorry...you'll need to replace db::describe('siteTracking') with this
function:
function dbDescribe($table)
{
$columns = array();
$records = self::execute('DESCRIBE ' . $table);
foreach ($records as $record)
{
foreach ($record as $column => $property)
{
if ($column == 'FIELD'){ continue; }
$columns[strtoupper($record['FIELD'])][$column] = $property;
}
}
return $columns;
}
you can place it where you save the dbExecute function.
Navigation:
[Reply to this message]
|