I have a function
pesquisaPagamentos($pesquisa)
I have a $pesquisa
variable that is getting the following value: '2015-10-05','2015-10-01'
, with single quotation marks.
It turns out that the way it, when it arrives at function
<?php
if(isset($_GET["acao"]) && $_GET["acao"] == "listaArr") {
$pesquisa = (isset($_POST["dataIni"])) ? "'".$PhpUtil->formataData($_POST["dataFim"])."','".$PhpUtil->formataData($_POST["dataIni"])."'" : "'',''";
print "<pre>";
print_r($pesquisa);
print "</pre>";
$arrecadacaoDia = $rel->pesquisaPagamentos($pesquisa);
I try to print the value of the first parameter and it comes with the integer value of the $ search variable, that is: '2015-10-05','2015-10-01'
. The second parameter of the function receives an empty value.