kieran, try this ...
$fieldresult = mysql_list_fields($some_database, $some_table);
$fieldcount = mysql_num_fields($fieldresult);
for ($my_counter = 0; $my_counter < $fieldcount; $my_counter++} {
$fieldsize = mysql_field_len($fieldresult, $my_counter);
echo "fieldsize = ".$fieldsize;
echo "<br>";
}
other useful field informatiomn functions are ...
$fieldname = mysql_field_name($fieldresult, $my_counter);
$fieldtype = mysql_field_type($fieldresult, $my_counter);
----- Original Message -----
From: "Kieran Hall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 03, 2002 7:26 AM
Subject: [PHP-WIN] Number of bytes in a field?
> Does anyone know of a way to get the number of bytes from a mysql field?
>
>
> *********************************************************************
> Kieran Hall
> *********************************************************************
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php