'".$date."') "; $sql = "SELECT url_naam, Updated FROM ".$table." ".$sql_select." ORDER BY `order`"; $result = $mysql->execute( $sql ); while( $myrow = $result->fetch_array( ) ) { if ($myrow["url_naam"] == "home") { $url = "https://www.imperiumtheater.nl"; $xml->createNode( $url , $myrow["Updated"], "1.0" ); } else { $url = "https://www.imperiumtheater.nl/".$myrow["url_naam"]; $xml->createNode( $url, $myrow["Updated"], "0.5" ); } } $tables = array( "voorstelling" => "voorstelling" ); foreach ( $tables as $table => $urlName ) { $sql = "SELECT * FROM ".$table." ".$sql_select." ORDER BY `order`"; $result = $mysql->execute( $sql ); while( $myrow = $result->fetch_array( ) ) { $url = "https://www.imperiumtheater.nl/event/".$myrow["url_naam"]; $xml->createNode( $url, datetimeToDate( $myrow["Updated"] ), "0.5" ); } } $xml->outputXMLDocument(); ?>