Ok i still cant work this out....
if i put this into globals.php
PHP Code:
$showad = $DB_site->query_first("SELECT * FROM ads WHERE pagename='???????'");
What do i have to either replace ?????? with so it only equals "store" or "store.php" if that file is being accessed for example instead of /xxxx/store.php (i can get that..lol)
or do i have to add other coding in front of it.
i give up for the night...bed time..
thanks for any help in the meantime :sleep: