![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
04/06/2008, 14:58
|
| | Fecha de Ingreso: agosto-2005
Mensajes: 722
Antigüedad: 19 años, 5 meses Puntos: 2 | |
problemas en una funcion bueno tengo una funcion que resive un parametro y con el forma una tabla en html, bueno la funcion la invoco y no entra a la funcion
$result_cust_set = getCustomerDetails($sale_id);
$customer_table = getCustomerTable($result_cust_set);
la funcion es getCustomerTable,
function getCustomerTable($results)
{
echo(' se esta llenando la tabla de los clientes ');
$i=1;
echo ($i);
$table = '';
foreach($results as $key => $value)
{
$table .= '<tr>';
$table .= '<td>';
$table .= $value['Cust_ID'];
$table .= '</td>';
$table .= '<td>';
$table .= $value['First_Name'];
$table .= '</td>';
$table .= '<td>';
$table .= $value['Last_Name'];
$table .= '</td>';
$table .= '<td>';
$table .= $value['Passport_Number'];
$table .= '</td>';
$table .= '<td>';
$table .= $value['Age'];
$table .= '</td>';
$table .= '<td>';
$table .= $value['Date_Of_Birth'];
$table .= '</td>';
$table .= '<td>';
$table .= $value['Discount_Card'];
$table .= '</td>';
$table .= '</tr>';
$i=$i+1;
echo ('cust ');
echo ($i);
}
$table .= '';
return $table;
}
}
la cosa es que no se muestra nisiquiera la linea
echo(' se esta llenando la tabla de los clientes ');
porfavor ayudenme estoy todo el dia con ese problema |