good morning,
i need a help, i should do a report with the data in a table, and i would like that the records would be editable in another form, with a click in a link or in a image
i have create a form and i have insert in actions the Custom Code
but don't work?
really I should do another type of query
because i have need of cf_id for attached the modify form
can you help me?
i need a help, i should do a report with the data in a table, and i would like that the records would be editable in another form, with a click in a link or in a image
i have create a form and i have insert in actions the Custom Code
<?php
$db =& JFactory::getDBO();
$query = "SELECT mese, assistenza_tecnica, riparazioni, canoni_software, hardaware
FROM sks_app_budget_ict
ORDER BY cod_mese ASC";
$db->setQuery($query);
$row = $db->loadRowList();
echo '<table width=100%><tr bgcolor=dbdbdb height=22><th>Mese</th><th>Assistenza Tecnica</th><th>Riparazioni</th><th>Canoni Software</th><th>Hardware</th></tr>';
foreach ($row as $key1=>$rw) {
echo '<tr>';
foreach ($rw as $key2=>$r) {
echo '<td width=30% height=22>' .$r. '</td>';
}
echo '</tr>';
}
echo '</table>';
?>
but don't work?
really I should do another type of query
$query = "SELECT cf_id, anno, mese, assistenza_tecnica, riparazioni, canoni_software, hardaware
FROM sks_app_budget_ict
ORDER BY cod_mese ASC"
because i have need of cf_id for attached the modify form
can you help me?