stenley píše:
nie, ako host si tam daj localhost
to tam mam...
mam takto definovane konstanty:
Kód:
if($_SERVER["SERVER_ADDR"] == "localhost"):
define("SQL_HOST", "localhost");
define("SQL_DBNAME", "rocproj");
define("SQL_USERNAME", "peterpan");
define("SQL_PASSWORD", "rpai");
else:
define("SQL_HOST", "....");
define("SQL_DBNAME", "....");
define("SQL_USERNAME", "....");
define("SQL_PASSWORD", "....");
endif;