Re: [dccreatives] Help with Links
Hi,
The issue seems to be here on search_results.php:
list($itemsRecords, $itemsMetaData) = getRecords(array(
'tableName' => 'items',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$itemsRecord = @$itemsRecords[0]; // get first record
...
// show error message if no matching record is found
if (!$itemsRecord) {
header("HTTP/1.0 404 Not Found");
print "Record not found!";
exit;
}
This is selecting 1 item from the items table based on a number in the URL. The results of this query don't seem to be used anywhere on the page, but if no item is returned, the page stops processing and outputs "Record Not Found"
Try removing this code since it isn't being used. That should take care of the issue for you.
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/