Unifix knowledge database - The original one

Dashboard - News - Search - List - About - Admin


Get enums fra mysql in php

Author:mike - Tue Nov 20 13:42:32 2007

PRIVATE function GetEnums($table,$field)
{
	$dat=mysql_fetch_array(mysql_query("show columns from `$table` like '$field';",$this->MysqlResource));
	return(preg_split("/'|,|enum|\(|\)/",$dat['Type'],null,PREG_SPLIT_NO_EMPTY));
}
Copyright(c) Unifix.org 2002-2011


Dashboard - News - Search - List - About - Admin
 
Powered by Mikjaer Consulting Solutions - Hosted by Specialhosting.dk