Hello,
Looking for help to solve this problem I have as this is new to me and now starting to learn.
When I type in my website name, handcraftdesigns.co.uk I receive this error warning message.
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'Handcraftdesigns' (0) in /home/content/26/10616326/html/admin/includes/functions/database.php on line 19 Unable to connect to database server!
I understand that I don't have the correct location names in my file, it is because I don't know how to properly type in the correct names needed, so looking for example of correct method. I am using OsCommerce 2.3.3 and have uploaded all my files via Filezilla and using Adobe DS3 to modify my files.
Here is the file content of what I attempted, but have something incorrect here:
<?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; if (USE_PCONNECT == 'true') { $$link = mysql_pconnect("Handcraftdesigns.db.10616326.hostedresource.com", "Handcraftdesigns", "Password"); } else { $$link = mysql_connect("Handcraftdesigns.db.10616326.hostedresource.com", "Handcraftdesigns", "Password"); } if ($$link) mysql_select_db("Handcraftdesigns"); return $$link; } function tep_db_close($link = 'db_link') { global $$link; return mysql_close($$link); }
Can someone please help me and explain what I have typed in wrong here to get the error, thanks