Sorry about reviving this post but I lost a database and have been fixing it, but that is another story.
Anyway this is the code I have:
$query = "SELECT AUC.ListingID, AUC.SubmissionID, AUC.AuctionSiteID, AUC.AuctionTitle, AUC.AuctionNumber, DATE_FORMAT(AUC.DateStarted, '%m/%d/%Y') AS DateStarted, SBX.StoreID ";
$query .= "FROM $connection1.tblListings AUC, $connection.tblSubmissions SBX ";
$query .= $wherestore.$wheredates."AND AUC.SubmissionID=SBX.SubmissionID ";
$query .= "ORDER BY AUC.DateStarted DESC";
$listTitle="All Auctions";
$connection = new mysqli($h['DOST'],$u['DOST'],$p['DOST'], $d['DOST']);
$connection->select_db($d['DOST']);
$connection1 = new mysqli($h['DAUC'],$u['DAUC'],$p['DAUC'], $d['DAUC']);
$connection1->select_db($d['DAUC']);
$result = mysql_query($query);
The problem I think I am having now is with the result section:
$result = mysql_query($query);
I get the error:
Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2) in /homepages/7/d170018324/htdocs/test/auclist.php5 on line 226
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /homepages/7/d170018324/htdocs/test/auclist.php5 on line 226
Line 226 is the $result line.
Any help is appreciated.