Forum Moderators: coopster

Message Too Old, No Replies

include data in an 'include'

         

iggy99

1:03 am on Jan 27, 2007 (gmt 0)

10+ Year Member



hi everybody....

here is my delimma....

i am storing a pathe to a counter file in my db

in my current 'footer.php' file i have an include tag that tells where the counter.php file is

<?php include_once("/home/.sites/123/site19/web/siteStats/counter.php");?>

this hard coded detail works perfecty

now i am storing this counter.php server path in the site db and i need to pull this data into the include_once to be path detail above

this tag shows the raw data on footer
<?php $db->sp("counter_path")?>

how do i get this "counter_path" data into the 'include' tag?

a huge thanks for any pointers

:)

dreamcatcher

7:29 am on Jan 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



include_once($db->sp("counter_path"));

dc