Fatal error: Cannot redeclare quote_smart() (previously declared in C:\Xamp\htdocs\nav2\include\functions.php:12) in C:\Xamp\htdocs\nav2\include\functions.php on line 25
Un šeit ir function fails:
<?php
// Izlogoties
if(isset($_GET['darbiiba']) and $_GET['darbiiba'] == "logout")
{
mysql_query("UPDATE lietotaaji SET online='N' WHERE id={$_SESSION['id']}");
unset($_SESSION['id']);
session_destroy();
}
//quote_smart funkcija
function quote_smart($value)
{
// Stripslashes
if (get_magic_quotes_gpc())
{
$value = stripslashes($value);
}
// Quote if not a number or a numeric string
if (!is_numeric($value))
{
$value = "'" . mysql_real_escape_string($value) . "'";
}
return $value;
}
?>mby kaads var paliidzeet!

Help












