Re: [zip222] Looking for a simpler way to do this...
Hi,
This shouldn't present an issue, but there may be a few things you want to change just to be safe.
First, you'll need to change where you're getting your $section variable from this:
$section == "sectionnamegoeshere";
to this:
$section = "sectionnamegoeshere";
You only want to use the 1 "=" when assigning a value.
Second, change where you're getting your records to this:
list($sidebar_featuresRecords, $sidebar_featuresMetaData) = getRecords(array(
'tableName' => 'sidebar_features',
'where' => mysql_escape($section)."=1",
));
This will ensure there is no malicious code hidden in your $section variable. This is just to be safe.
Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/