public function quote_identifier($field) {
		$field = str_replace('`', '``', $field);
		$parts = explode('.', $field);

		foreach (array_keys($parts) as $k) {
			$parts[$k] = '`' . $parts[$k] . '`';
		}

		return implode('.', $parts);
	}
public function quote_identifier($field) {
		$field = str_replace('`', '``', $field);
		$parts = explode('.', $field);

		foreach (array_keys($parts) as $k) {
			$parts[$k] = '`' . $parts[$k] . '`';
		}

		return implode('.', $parts);
	}
public function quote_identifier ( $ field ) { $ field = str_replace ( '`' , '``' , $ field ) ; $ parts = explode ( '.' , $ field ) ; foreach ( array_keys ( $ parts ) as $ k ) { $ parts [ $ k ] = '`' . $ parts [ $ k ] . '`' ; } return implode ( '.' , $ parts ) ; }
Quote a variable so it can be used in a field name in a query

@access public
@param string $field The field to quote
@return string $quoted_field The quoted result
Quote a variable so it can be used in a field name in a query