I was having an issue with a virtual directory on my IIS server so went to delete it but deleted the entire Default Web Site instead.
I've recreated the Default Web Site in IIS but my php search result pages now give me this error:
Warning: Cannot use a scalar value as an array in C:\Inetpub\wwwroot\woodward\search_result.php on line 29
Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\woodward\search_result.php on line 29
This is the code from search_result.php:
<?php
include_once('FX/FX.php');
include_once('FX/server_data.php');
include_once('FX/image_proxy.php');
$Invoice=$_POST['Invoice'];
$account_no=$_POST['account_no'];
if(isset($_POST['skip'])){ $skipSize=$_POST['skip'];}else{$skipSize='0';}
if(isset($_POST['type'])){ $type=$_POST['type'];}else{$type='';}
$groupSize='50';
if($type=='prev'){ $skipSize=$skipSize - $groupSize; }
if($type=='next'){ $skipSize=$skipSize + $groupSize; }
$SearchResult=new FX($serverIP,$webCompanionPort,'FMPro7');
$SearchResult->SetDBData('woodward_images.fp7','Web_fields',$groupSize);
$SearchResult->SetDBPassword('','WebUser');
$SearchResult->AddDBParam('Invoice',$Invoice);
$SearchResult->AddDBParam('account_no',$account_no);
$SearchResult->AddSortParam('Input_date','descend');
$SearchResult->FMSkipRecords($skipSize);
$SearchResultResult=$SearchResult->FMFind();
//echo $SearchResultResult['errorCode'];
foreach($SearchResultResult['data'] as $key=>$SearchResultData);
?>
But as this worked fine before and nothing has changed with these files I don't think this is the issue. I think I may be missing something from the Default Web Site but I'm stuck as to what it might be.

Any pointers much appreciated.