prepare("SELECT * FROM data_td WHERE iddata_td = ?");
$stmt->bind_param("i", $idtd);
$stmt->execute();
$rowtd = $stmt->get_result()->fetch_assoc();
$stmt->close();
if (!$rowtd) {
die('Dossier non trovato');
}
$idtrftd = (int)$rowtd['idtrf'];
$idcompany = (int)$rowtd['idcompany'];
// descrizione articolo (dal TRF) per il titolo
$stmt = $conn->prepare("SELECT sample_description FROM `trf-details` WHERE idtrfdetails = ?");
$stmt->bind_param("i", $idtrftd);
$stmt->execute();
$description = $stmt->get_result()->fetch_assoc()['sample_description'] ?? '';
$stmt->close();
$conn->close();
?>
prepare($sql);
$stmt->bind_param("i", $idtd); // "i" indica che l'id è un intero
$stmt->execute();
$result = $stmt->get_result();
$row = $result->fetch_assoc();
$idtrftd = $row['idtrf'];
$stmt->close();
$conn->close();
?>
setQuery("SELECT * FROM tdfileattached WHERE tdfileattached.iddata_td='$idtd'");
$filenamelist->execute();
?>
|
|
|
atEnd()) {
$wa_startindex = $filenamelist->Index;
?>
|
" target="_blank">
|
getColumnVal("description_fileattached")); ?> |
">
|
moveNext();
}
$filenamelist->moveFirst(); //return RS to first record
unset($wa_startindex);
unset($wa_repeatcount);
?>