After several days of trying to understand how the code works and even buying a book on Perl I think I've found the problem.
The code appears to work fine - it's the database that doesn't hold the information the code is requesting.
If I open up the database in Access and look in the table Catalog Section there are no records in sPageName apart from where I have specified a page name within Actinic.
I don't know if this is normal but I let Actinic generate its own pagenames for all my products to help with SEO.
The only table I can find the actual page name is FileList and I can't see any relationship to either the product or the section in there.
Does anyone know how these are linked or how I can get Actinic to populate the sPageName records?
The code appears to work fine - it's the database that doesn't hold the information the code is requesting.
Code:
$connect = odbc_connect("ActinicCatalog9","",""); $query = "SELECT [sPageName] FROM [Catalog Section] WHERE [nSectionID]=".$sectref."";
I don't know if this is normal but I let Actinic generate its own pagenames for all my products to help with SEO.
The only table I can find the actual page name is FileList and I can't see any relationship to either the product or the section in there.
Does anyone know how these are linked or how I can get Actinic to populate the sPageName records?
Comment