I assume that both (yellows and whites) roads are in the same layer and different classes. If this is the case you have no control about the drawing order with the class elements. Mapserver renders all layer elements in the order it gets from source (shp, postgis). 
<br><br>I think there can be two alternatives. The first is separate the roads in two layers using a FILTER at LAYER level so all the white roads gets drawed first and then all the yellow ones.<br><br>The other alternative (the one I have used sometime) is order the elements in the source (shp, postgis) so all white elements are procesed first by mapserver. If your layer DATA is on a PostgreSQL table then you can make a second table with the same structure of your original table and insert all the roads in the right order like:
<br><br>INSERT INTO newtable SELECT * FROM oldtable ORDER BY criteria<br><br>I&#39;m sure there must be a better way to sort the elements without creating a second table but this is the way I get it work.<br><br>If your layer DATA is on a shp file I don&#39;t know how to do that but the idea is the same so if you find the way to do the same on shp file it must work also.
<br><br>Rodrigo.<span style="font-style: italic;"></span><br><br><div><span class="gmail_quote">On 6/15/07, <b class="gmail_sendername">Jackey Cheung</b> &lt;<a href="mailto:cheung.jackey@gmail.com">cheung.jackey@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div style="padding-right: 10px; padding-left: 10px; font-size: 10pt; color: rgb(0, 0, 0); padding-top: 15px; font-family: Arial;" bgcolor="#d4d0c8" name="Compose message area">
<div>
<div>I&#39;ve rendered a map image like this: <a title="wlmailhtml:{8BE2A9A2-4BE0-4EA1-A8B2-C9B72B7A33CF}mid://00000336/!x-usc:http://www3.mapasia.com/jackout/rj.png">http://www3.mapasia.com/jackout/rj.png</a></div>
<div>&nbsp;</div>
<div>there are a few problems here:</div>
<div>&nbsp;</div>
<div>1. they are joined correctly</div>
<div>2. although they are joined, but the yellow one should &quot;covers&quot; the white 
ones</div>
<div>3. the white one should be&nbsp;drawn beneath the&nbsp;lower segment of the 
yellow&nbsp;one</div>
<div>&nbsp;</div>
<div>As trying to fix this kind of problems, I&#39;ve noticed that 
it&#39;s&nbsp;impossible to control the z-order of how roads are drawn. Say, in may 
cities, one very long road may elevated somewhere, and dive beneath other roads 
somewhere else. Is there any way to present this kind of thing with 
MapServer?</div></div></div>
</blockquote></div><br>