Ahora lo entiendo, sin querer había borrado donde estas las funciones, pero ahora me salen más cosas:
Notice: Undefined index: action in /homepages/1/d6/htdocs/COPIAWEB/ORDRE/editar.php on line 15
Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in /homepages/1/d6/htdocs/COPIAWEB/ORDRE/funciones.php on line 11
Notice: Undefined variable: mysqli in /homepages/1/d/htdocs/COPIAWEB/ORDRE/editar.php on line 211
Fatal error: Call to a member function query() on a non-object in /homepages/1/d/htdocs/COPIAWEB/ORDRE/editar.php on line 211
Aquí esta los parámetros:
Código PHP:
function getParam($param, $default) {
$result = $default;
if (isset($param)) {
$result = (get_magic_quotes_gpc()) ? $param : addslashes($param);
}
return $result;
}
function sqlValue($value, $type) {
$value = get_magic_quotes_gpc() ? stripslashes($value) : $value;
$value = function_exists("mysqli_real_escape_string") ? mysqli_real_escape_string($value) : mysqli_escape_string($value);
switch ($type) {
case "text":
$value = ($value != "") ? "'" . $value . "'" : "NULL";
break;
case "int":
$value = ($value != "") ? intval($value) : "NULL";
break;
case "double":
$value = ($value != "") ? "'" . doubleval($value) . "'" : "NULL";
break;
case "date":
$value = ($value != "") ? "'" . $value . "'" : "NULL";
break;
}
return $value;
}
?>