Aargh i'm having a nightmare with the following
$which_server = getenv("SERVER_ADDR");
if($which_server =="127.0.0.1")
{
include_once "$DOCUMENT_ROOT/db_connect.php";
$site_url = "$DOCUMENT_ROOT/mp";
$site_db = "mcintosh_editorial";
}else{
include_once "/home/mcintosh/db_connect.php";
$site_url = "..";
$site_db = "mcintosh";
}
connect_to("$site_db","user","passwd");
$result = mysql_list_fields("$site_db","$table_name")or die(mysql_error());
$num_fields = mysql_num_fields($result);
$row = mysql_fetch_array($result);
it keeps coming up with the following error
Table 'mcintosh_editorial.' doesn't exist
and i know for a fact that it does !!
Anyone got any ideas?