configuration and settings store in dastabase

This commit is contained in:
xiaomlove
2021-01-11 22:00:46 +08:00
parent 2c25293d9b
commit 7373ec16e8
10 changed files with 226 additions and 88 deletions

View File

@@ -78,7 +78,10 @@ function sql_query($query)
}
function sqlesc($value) {
$value = "'" . mysql_real_escape_string($value) . "'";
if (is_null($value)) {
return 'null';
}
$value = "'" . mysql_real_escape_string($value) . "'";
return $value;
}