Reply to Re: mysql_field_len Problem

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация