how do i assign value of php variable to javascript variable
<pre><code>&lt;html&gt;
&lt;head&gt;
 &lt;?php

         $bldg_number=-1;
 ?&gt;
                      &lt;script language="javascript" type="text/javascript"&gt;
                      var bldg=&lt;?php echo $bldg_number; ?&gt;
                      if( bldg &lt; 0)
                          {
                            alert("me");
                          }
                      else
                          {
                            alert("hi");
                          }
                    &lt;/script&gt;
</code></pre>

<p>
   
<strong>i was expecting the output a alert with message me but there is no output when i am running this page please tell me why the value of php variable is not passing to javscript variable</strong></p>
