Дык а че здесь менять надо? Допустим все впихнем в one слой...
как-то так чтоли?
$mybase = mysql_query("SELECT * FROM objects ORDER BY y ASC");
while($db = mysql_fetch_assoc($mybase)) {
$y[$db['y']] = $db;
$allobj = "<img src='{$db['img']}' style='position: absolute; left:{$db['x']}; top:{$db['y']}'></img>";
$Objects = $dom->createTextNode($allobj);
$one->appendChild($Objects);
}
$mybases = mysql_query("SELECT * FROM customers ORDER BY y ASC");
while($dbs = mysql_fetch_assoc($mybases)) {
$all = "<img src='{$dbs['loc']}' width='50' height='50' id='{$dbs['id']}' name='{$dbs['name']}' style='position: absolute; left:{$dbs['x']}; top:{$dbs['y']}'></img>";
$Cust = $dom->createTextNode($all);
$one->appendChild($Cust);
}