1 Przepisy :)
przez PrzystanekSkandynawia
- 1 odpowiedź
- 17,545 wyświetleń
- Ostatni post 2014-10-27 12:36:25 przez tryptyki
if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string ($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } ?>
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
Forum → Potrawy z ryb
Strony 1
Zaloguj się lub zarejestruj aby zamieścić nowy temat
Tematy na forum ze szczegółami odpowiedzi, wyświetleń, ostatni post.
przez PrzystanekSkandynawia
Strony 1
Zaloguj się lub zarejestruj aby zamieścić nowy temat
Forum → Potrawy z ryb
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc