3.10 Code Changes?

2 posts by 2 authors in: Forums > CMS Builder
Last Post: June 20, 2017   (RSS)

By mark99 - June 20, 2017

Quick question, I see there are some changes to how the viewer code works in 3.10. However I'm unclear if I can still do things like this or if I somehow need to change my code.. examples of current code below:

  $orderBy = @$_REQUEST['orderBy'];  
  $orderByClean = "";

  if(!$orderByClean) { $orderByClean = 'sfbb_cheap_total_price+0'; }

  list($isp_listRecords, $isp_listMetaData) = getRecords(array(
    'tableName'   => 'isp_list',
    'limit'     => '10',
    'loadCreatedBy' => false,
    'where'       => " category LIKE '%Superfast Broadband%' AND (uk_network_availability LIKE '%Significant National Coverage%' OR uk_network_availability LIKE '%Patchy National Coverage%') ",
    //'where'       => " category LIKE '%Superfast Broadband%' ", 
    'orderBy'       => $orderByClean,
  ));

  list($isp_listRecords, $isp_listMetaData) = getRecords(array(
    'tableName'   => 'isp_list',
    'where'       => whereRecordNumberInUrl(0),
    'limit'       => '1',
    'loadCreatedBy' => false,
  ));
  $isp_listRecord = @$isp_listRecords[0]; // get first record