Labākā atbilde
Atbildes
-
0 1
fyeah (33) 4 (1323)26 15 g
#function db_add_column(&$ret, $table, $column, $type, $attributes = array()) {# if (array_key_exists('not null', $attributes) and $attributes['not null']) {# $not_null = 'NOT NULL';# }# if (array_key_exists('default', $attributes)) {# if (is_null($attributes['default'])) {# $default_val = 'NULL';# $default = 'default NULL';# }# elseif ($attributes['default'] === FALSE) {# $default = '';# }# else {# $default_val = "$at