diff --git a/core/generate.php b/core/generate.php index a4a9c17..10753ea 100644 --- a/core/generate.php +++ b/core/generate.php @@ -46,6 +46,15 @@ function column_type($columnname){ case (preg_match("/int/i", $columnname) ? true : false) : return 5; break; + case (preg_match("/decimal/i", $columnname) ? true : false) : + return 6; + break; + case (preg_match("/datetime/i", $columnname) ? true : false) : + return 8; + break; + case (preg_match("/date/i", $columnname) ? true : false) : + return 7; + break; default: return 0; break; @@ -473,6 +482,31 @@ function generate($postdata) { '; break; + //DECIMAL + case 6: + $create_html [] = '