simple php variable question
<p>Hope someone can help me</p>

<p>I have declared the variable </p>

<pre><code> &lt;?php $sitename = "http://" .$_SERVER["SERVER_NAME"]; ?&gt;
</code></pre>

<p>and would like to use the variable in a mysql query:</p>

<pre><code>$query_rs_main = "SELECT * FROM g_page WHERE g_page_site = "echo $sitename" AND g_page_url = '/index.asp'";
</code></pre>

<p>How do I do the "echo $sitename" part? thanks</p>
