This topic is locked
[SOLVED]

 Display Advanved search parameter to report page

10/14/2014 12:38:57 AM
PHPRunner General questions
romaldus author

I have two field in advanced search : sales_date and company_name
From sample code in: http://xlinesoft.com...n_list_page.htm

global $strTableName;

if (isset($_SESSION[$strTableName.'_advsearch']))

{

$searchClauseObj = unserialize($_SESSION[$strTableName.'_advsearch']);

}
$fieldSearchData = $searchClauseObj->_where[$strTableName."_srchFields"];
for($i=0; $i<count($fieldSearchData); $i++){
$val1 = $fieldSearchData[$i]['value1'];
$val2 = $fieldSearchData[$i]['value2'];
$srchCat = $fieldSearchData[$i]['opt'];
$srchNot = $fieldSearchData[$i]['not'];
echo "Date Start: ".$val1."

";

echo "Date Finish: ".$val1."

";


The problem is :

when I fill the search form with Date Range and company name, both the date range and company name printed on report page (i need date range field only to display):

Date Start: 2014-10-1

Date Finish: 2014-10-1

Date Start: company aaa

Date Finish: company aaa


How to display the date range in a particular place on the report? Using the above code, the date range appearing on the top of the page.

Sergey Kornilov admin 10/14/2014

Use 'Insert PHP code snippet' function. Insert your snippet where you need to display the date range and put your code there.