I have the following function:
$check_sql = “SELECT *”
. " FROM class_template"
. " WHERE id = ‘" . {template} . "’";
sc_lookup(rs, $check_sql);
if (isset({rs[0][0]})) // Row found <<<<------- This is the line I’m referring to below!
{
{title} = {rs[0][3]}; // <<<<------- This is the line I’m referring to below!
// {other_region} = {rs[0][1]};
}
else // No row found
{
{title} = ‘Not Valid’;
//{other_region} = ‘’;
}
The line that says “This is the line I’m referring too”, it has {rs[0][3]}, is there a way of referring to the column name instead of referring to it by number (3)???