Posted by rbutlerjr on 02/18/06 00:35
Sure:
function returnColumnSize ($column) {
$db_connection = connect ();
$query = "SELECT $column FROM $this->tablename LIMIT 1";
$result = mysql_query ($query, $db_connection);
if (!$result) {
die ("Invalid Database Query ($query): " . mysql_error() );
} else {
return (mysql_field_len ($result, 0));
}
// We had data, but couldn't find the column_name specified.
return FALSE;
}
This continues to work perfectly fine on my other three systems (2
windows, 1 ISP linux), but fails on this Ubuntu.
[Back to original message]
|