php - host parameter in mysqli_connect() for online website -


i'm beginner in php development. in local station, use xampp host project , use localhost set host parameter. have uploaded project in host server, gives error:

failed connect sql: access denied user 'irdnir_harf'@'localhost' database 'irdnir_harf'  

what should set it?

mysqli_connect() has following syntax:

mysqli_connect(hostname, username, password, database) hostname localhost usually.

make sure username , password correct. if not set otherwise, use root username , leave blank password.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -