Thanks for the fast reply!

I am a newbee to PHP so.. do I have to use PHP or can it be done in ASP, php is not yet installed on the server..
Or can I just use the PHP script tag in the ASP page without changing the .asp suffix of the page to the PHP suffix
something like:
<script language="php">
/* SQL = select PLANNUMMER
from PLANID
where PLANNUMMER not in
( select PLANNUMMER
from PLANY )*/
</script>
Thanks//M