Jump to content
php.lv forumi

probleema ar mysql


udens

Recommended Posts

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

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

×
×
  • Create New...