I suggest you to create a simple file and try the connection and a query to your database, something like this:
<?php
# config parameters
$host = '';
$user = '';
$pass = '';
$db = '';
$table = '';
$conn = mysql_connect($host,$user,$pass);
if (!$conn)
{
die('connection error: ' . mysql_error());
}
mysql_select_db($db, $conn) or die('database error: '.mysql_error());
$q = mysql_query("select * from $table") or die('query error: ' .mysql_error());
echo 'result: ' . mysql_num_rows($q);
?>
This is very basic, try if it works and if you're in doubt, post back any error you get.
P.S. remember to set the correct config parameters.
cereal
Veteran Poster
1,146 posts since Aug 2007
Reputation Points: 344
Solved Threads: 223
Skill Endorsements: 22
Ok, when you've tried this on your hosting did you got any errors? If yes, can you paste the output here? I suggested you this test just to check if the connection with the database of the hosting was working fine.
Otherwise post your code or at least a simplified version of it in which the problem is occurring. If I don't understand which kind of error you get I cannot help.
cereal
Veteran Poster
1,146 posts since Aug 2007
Reputation Points: 344
Solved Threads: 223
Skill Endorsements: 22
What is the php version of your hosting company? You mentioned perl or was that a typo?
iamthwee
Posting Genius
6,254 posts since Aug 2005
Reputation Points: 1,567
Solved Threads: 476
Skill Endorsements: 34