udens Posted September 18, 2006 Report Share Posted September 18, 2006 iisaak sakot ir taa config.php { define('DB_user', 'ahoi'); define('DB_password', 'yo'); define('DB_name', 'aleluja'); } functions.php { mysql_connect("localhost", DB_user , DB_password ); mysql_select_db(DB_name); } peectam tiek incluudots fails config.php un functions.php bet browserii ir sekojoshi Access denied for user 'DB_user'@'localhost' kapeec vinjsh nepanjem tos mainiigos nodefineetos? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 18, 2006 Report Share Posted September 18, 2006 (edited) udens --> kautkaa jociigi definee f-ju ;) function bla() { } un nevis functions.bla { } un izsaukt arii bla(); iekavas ir OBLIGATAS...... kautvai tur ir tuksh..... Edited September 18, 2006 by Grey_Wolf Link to comment Share on other sites More sharing options...
Kristabs Posted September 18, 2006 Report Share Posted September 18, 2006 Wolf, tur nav funkcija, bet functions.php lapas saturs. Man jautaajums, vai <?php ?> tagi ir arii salikti? Link to comment Share on other sites More sharing options...
udens Posted September 18, 2006 Author Report Share Posted September 18, 2006 udens -->kautkaa jociigi definee f-ju ;) function bla() { } un nevis functions.bla { } un izsaukt arii bla(); iekavas ir OBLIGATAS...... kautvai tur ir tuksh..... da neee tu ne taa to saprati es taa paraadiju to kas atrodas failaa config.php un failaa functions.php ar shitaam iekavaam { faila saturs } ir salikti php tagi ar visu paareeejo tas define straadaa tikai shite probleemas un ka ieraxtu manuaali functions.php mysql_connect ('localhost','useris','parole'); tad viss iet Link to comment Share on other sites More sharing options...
Kristabs Posted September 18, 2006 Report Share Posted September 18, 2006 debugo, echo, sample php uztaisi, kur vienaa definee, otraa include, echo. Viss ko varu ieteikt. Link to comment Share on other sites More sharing options...
udens Posted September 18, 2006 Author Report Share Posted September 18, 2006 ok meegjinaashu Link to comment Share on other sites More sharing options...
udens Posted September 18, 2006 Author Report Share Posted September 18, 2006 es atrisinaaju probleemu incluudojot config.php arii ieksh functions.php Link to comment Share on other sites More sharing options...
Kristabs Posted September 18, 2006 Report Share Posted September 18, 2006 taadiem jokiem include_once(); jaalieto Link to comment Share on other sites More sharing options...
Recommended Posts