když sem si přes echo mysql_errno() . ": " . mysql_error() . "\n"; nechal vypsat chybu vyhodilo to:
1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
začátek stránky sem tady nezveřejňoval takže dodatečně ale chybu nevidim
<?
require "./config.php";
$z = kontrola(); // kontrola hesla a id
$string = "?id=".$id."&pass=".$pass;
?>
<HTML>
<HEAD>
......