Sid3335
08-04-2006, 03:58 AM
I'm constructing an array of values from a mysql result resource like:
for ($i=0; $i < count($row); $i++)
{
$full_db_array[] = mysql_fetch_field($result, $i) ;
}
i'm getting the column type like:
echo $full_db_array[$x]->type ;
problem is it is very generalised, for example, tinyint, smallint and int are all classed as int.
why does is not pass as the actual field type and just a general category?
is there a way to get around this?
for ($i=0; $i < count($row); $i++)
{
$full_db_array[] = mysql_fetch_field($result, $i) ;
}
i'm getting the column type like:
echo $full_db_array[$x]->type ;
problem is it is very generalised, for example, tinyint, smallint and int are all classed as int.
why does is not pass as the actual field type and just a general category?
is there a way to get around this?