<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks for the suggestion.<br><br>Actually, my problem was in the font and size definitions. <br>Once I happened upon those assignments (below in the // Label section)<br>my label text magically appeared. <br><br>You would think the text would default to something like everything else.<br><br>Thank you for all the feedback!<br>


        
        
        
        <style type="text/css">PRE.western { font-family: "Liberation Serif",serif; }PRE.cjk { font-family: "WenQuanYi Micro Hei",monospace; }PRE.ctl { font-family: "Lohit Hindi",monospace; }P { margin-bottom: 0.08in; }</style>


<pre class="western">// Layer 3 airports--------------------------------------------------------

// Point Symbol
$nSymbolId = ms_newSymbolObj($oMap, "circle");
$oSymbol = $oMap->getsymbolobjectbyid($nSymbolId);
$oSymbol->set("type", MS_SYMBOL_ELLIPSE);
$oSymbol->set("filled", MS_TRUE);
$aPoints[0] = 1;
$aPoints[1] = 1;
$oSymbol->setpoints($aPoints);

// Layer
$oLayerAirports = ms_newLayerObj($oMap);
$oLayerAirports->setConnectionType(MS_POSTGIS);
$oLayerAirports->set("name", "airports");
$oLayerAirports->set("type", MS_LAYER_POINT); # This is crucial
//$oLayerAirports->set("type", MS_LAYER_ANNOTATION); # This is crucial
$oLayerAirports->set("status", MS_DEFAULT);
$oLayerAirports->set("labelitem", "icao");
//$oLayerAirports->set("classitem", "MyAirports");
$oLayerAirports->set("connection", "host=xxx port=xxx dbname=xxx user=xxx password=xxx");
$oLayerAirports->set("data", "geom From (select a.icao, geom From airports a left join airportdata e on a.icao = e.icao where e.icao Is Not Null) as subquery using unique icao using srid=4326"); 

// Class with Labels
$oAirportsClass = ms_newClassObj($oLayerAirports);
$oAirportsClass->set("name","MyAirports");

// Style
$airportsStyle = ms_newStyleObj($oAirportsClass);
$airportsStyle->color->setRGB(255, 22, 22);
$airportsStyle->set("symbolname", "circle");
$airportsStyle->set("size", "3");

// Label
$oAirportsClass->label->color->setRGB(0,0,0);
<b>$oAirportsClass->label->set("font", "verdana");
$oAirportsClass->label->set("size", "tiny");</b>
$oAirportsClass->label->set("position", MS_AUTO);
$oAirportsClass->label->set("antialias", MS_TRUE);</pre>

<br><br><br>                                    </div></body>
</html>