checking database access
I can relate -- I've had issues I still don't understand with GoDaddy's php server, and I have some background with php and am using a Linux server, not the Windows flavor.
Here's a few things that can help, though:
(hopefully not restating the obvious) Try queries first from GoDaddy's phpMyAdmin, which you can get to from the Hosting control panel by selecting Databases, clicking on MySQL, and going through the login if you've got your DB's set up. Sometimes this can reveal details missed on the code side, where you're usually dealing with inline SQL.
Make sure that if you use any $_POST or $_GET variables in your query and are using double quotes or heredoc, you enclose them in curly brackets. If they're string values, put the curly brackets inside the quotes that go into the SQL.
Finally, even if you don't have access to the error log file directly, I found out recently that php has nifty functions just to check this kind of thing -- it would work something like this:
Code:
<?php
//assuming connection has already been made and DB selected
$result = mysql_query($query, $connection);
if (!$result) {
$report = 'Query failed for the following reason: <br />';
$report.= mysql_errno($connection). ": ";
$report.= mysql_error($connection);
echo $report
//alternately, if this is a backend process like PayPal IPN,
//you could use mail($recipient, "Query Failed", $report)
}
?>
Hopefully this is helpful.