Hi
i have this site we are building and we have a piece of php code that we want to be able to turn on or off when required.
I have setup a single section with a hidden check box and a text box for the php code and then i have put this into the code
// load record from 'mobile_site_admin'
list($mobile_site_adminRecords, $mobile_site_adminMetaData) = getRecords(array(
'tableName' => 'mobile_site_admin',
'where' => '', // load first record
'loadUploads' => false,
'allowSearch' => false,
'limit' => '1',
));
$mobile_site_adminRecord = @$mobile_site_adminRecords[0]; // get first record
and int he body of the code this
<?php echo htmlencode($mobile_site_adminRecord['code']) ?>
but it wont load the code it keeps showing the php code on the page, why wont this work.
Thanks
Craig
KC Media Solutions
www.kcmedia.biz