Hope someone can help me
I have declared the variable
<?php $sitename = "http://" .$_SERVER["SERVER_NAME"]; ?>
and would like to use the variable in a mysql query:
$query_rs_main = "SELECT * FROM g_page WHERE g_page_site = "echo $sitename" AND g_page_url = '/index.asp'";
How do I do the "echo $sitename" part? thanks