Notice: Undefined index:
Galera,
Estou utilizando uma Store Procedure com PDO e PHP, mas não estou conseguindo trazer os registros **<?php echo trim($totf['Fatura']); ?>**, pois gera a mensagem: Notice: Undefined index: Fatura in /Library/WebServer/Documents/A3Corp/sp.php on line *38*
<?php
require("funcoes/conexao_stur.php");
$Reserva = 'FT00000125';
//Recuperar as informações da Empresa
$pdo = conectar_stur();
//$sql = "EXEC sp_FATURA_DADOS_CLIENTE ?";
$totalf = $pdo->prepare("EXEC sp_FATURA_DADOS_CLIENTE ?");
$totalf->bindParam(1, $Reserva, PDO::PARAM_STR, 10);
$totalf->execute();
//$totf = $totalf->fetch(PDO::FETCH_ASSOC);
?>
Abaixo segue o resultado do var_dump($totf);
array (size=1)
0 =>
array (size=22)
'Fatura' => string 'FT00000125' *(length=10)*
'Emissao' => string '03/04/2014' *(length=10)*
'Vencimento' => string '16/04/2014' *(length=10)*
'NomeSetor' => null
'DeptSetor' => string '' *(length=0)*
'Contato' => string 'MAIZA' *(length=5)*
'Sacado' => string '74 - EOLICA' *(length=51)*
'Endereco' => string 'AV 1, N 1701, SL 1301' *(length=43)*
'Bairro' => string 'ALDEOTA' *(length=7)*
'Cidade' => string 'FORTALEZA' *(length=9)*
'Estado' => string 'CE' *(length=2)*
'CEP' => string '6000-000' *(length=9)*
'Endereco_cob' => string '' *(length=0)*
'Bairro_cob' => string '' *(length=0)*
'Cidade_cob' => null
'Estado_cob' => null
'CEP_cob' => string ' -' *(length=6)*
'DDD' => string '85' *(length=2)*
'Fone' => string '0000-1121' *(length=9)*
'Fax' => string '' *(length=0)*
'CNPJ' => string '00000000000' *(length=18)*
'CGF' => nullDiscussão (4)
Carregando comentários...