// We don't want binary data to be destroyed
// Note: from the MySQL manual: "BINARY doesn't affect how the column is
// stored or retrieved" so it does not mean that the contents is
// binary
//if ((strstr($row_table_def['Type'], 'blob') || strstr($row_table_def['Type'], 'binary'))
// && !empty($data)) {
if (strstr($row_table_def['True_Type'], 'blob')
&& !empty($data)
&& $cfgProtectBlob == TRUE) {
echo ' ' . $strBinary . ' ' . "\n";
} else {
?>
' . $cfgFunctions[$j] . '' . "\n";
}
} else {
// for default function = NOW() on first timestamp field
// -- swix/18jul01
for ($j = 0; $j < count($cfgFunctions); $j++) {
echo ' ';
if ($cfgFunctions[$j] == 'NOW') {
echo '' . $cfgFunctions[$j] . ' ' . "\n";
} else {
echo '' . $cfgFunctions[$j] . ' ' . "\n";
}
} // end for
}
?>
32000) {
echo ' ' . $strTextAreaLength . ' ' . "\n";
}
}
else if (strstr($row_table_def['True_Type'], 'enum')) {
$set = str_replace('enum(', '', $row_table_def['Type']);
$set = ereg_replace('\\)$', '', $set);
$set = explode('\',\'', substr($set, 1, -1));
?>
20) {
?>
' . htmlspecialchars($set[$j]) . '' . "\n";
} // end for
?>
[]" ';
// echo 'value="' . substr($set[$j], 1, -1) . '"';
echo 'value="' . urlencode($set[$j]) . '"';
if ($data == $set[$j]
|| ($data == ''
&& isset($row_table_def['Default'])
&& $set[$j] == $row_table_def['Default']
&& $row_table_def['Null'] != 'YES')) {
// To be able to display a checkmark in the [Null] box when
// the field is null, we lose the ability to display a
// checkmark besides the default value
echo ' checked="checked"';
$seenchecked =1;
}
echo ' />' . "\n";
echo ' ' . htmlspecialchars($set[$j]) . "\n";
} // end for
if ($row_table_def['Null'] == 'YES') {
echo ' ';
echo ' ' . "\n";
echo ' [' . $strNull . ']' . "\n";
} // end if
} // end else
?>
' . htmlspecialchars($subset) . '' . "\n";
} // end for
?>
// We don't want binary data destroyed
else if (strstr($row_table_def['Type'], 'blob') && !empty($data)) {
if ($cfgProtectBlob == TRUE) {
echo "\n";
?>
40) ? 40 : $len);
echo "\n";
?>