
Originally Posted by
toneranger
host insists localhost will not work in connecting to database on their server. have to use cogia.net
and so you tried something like?
Code:
MYSQL_CONNECT("cogia.net","your_user_name","your_password")
a connection is just a connection. the PHP command MYSQL_CONNECT works the same way for INDEXU lite as it does for the other two prgrams you installed.
upload the following as a file to your server after making the needed changes for your_db_user_name and your_db_password. what are the results?
Code:
<?php
$link = mysql_connect("cogia.net", "your_db_user_name","your_db_password");
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
.