Hi Jeff,
Here's some simplified code:
<?php
if (@$record['style']) {
$styleRecord = mysql_get('styles', $record['num']);
if (@$styleRecord['path']) { include($styleRecord['path']); }
}
?>
If you're getting an error that says "undefined variable 'record' " it means that $record is undefined, either when you're checking $record['style'] or $record['num']. So PHP is assuming $record is an array and it's looking for the 'style' key of the array, but $record isn't defined, so it's giving you an error to let you know that.
I've added @ to suppress error message and added some code to check each variable has a value before we use it, but you might want to just add some debug code above to check if $record is set, such as <?php showme($record); ?>. And if that gives an error, look higher up in the file to try and determine where and when $record is suppose to be getting set.
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com