PHP Variables value in Javascript Popup

hi all

i m having trouble in getting values of my php variables in popup window.

Onclick of a Button the Popup window appears but the query results are not shown in popup window because i cant get my php variables values that are in parent page


<script type="text/javascript">
<!--
function myPopup2() {
window.open( "results.php", "myWindow",
"status = 1, height = 300, width = 300, resizable = 0" )
}
//-->
</script>

My php code works fine in general without popup window

vineet

You are not passing any query results to that javascript function