Get field length
<?php
mysql_connect("mysql153.secureserver.net","java2s","password");
mysql_select_db("java2s");
$query = "SELECT FirstName FROM Employee ";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
echo mysql_field_len($result, 0);
?>
Related examples in the same category