se per esempio scrivo
echo"<table border=1 cellpadding=0 cellspacing=0 BORDERCOLOR=#778899><tr><td>";
echo "<table bgcolor=#CCCCFF >";
include("connessione.php");
for($i=0;$i<=$count;$i++){
$id=$selected_tbl[$i];
$query1 = "select * from archaeoldb where ID_DOC='$id'";
$stid1 = OCIParse($conn, $query1);
OCIExecute($stid1);
//stampa
while (OCIFetchInto($stid1, $row1, OCI_ASSOC)) {
$keys1 = (array_keys($row1));
unset($keys1[2]);
if ($th==0) {
echo "<tr>";
foreach ($keys1 as $k1) {
echo "<th>" . $k1 . "</th>\n";
}
echo "</tr>\n";
$th = 1; // Table header done !
}
echo "<tr>";
foreach ($keys1 as $k1)
{
echo "<td>" . $row1[$k1] . "</td>\n";
}
echo "</tr>\n";
}
//delete
$query2 = "delete from archaeoldb where ID_DOC='$id'";
$stid2 = OCIParse($conn, $query2);
OCIExecute($stid2);
}
echo "</table>\n\n";
echo "</td></tr></table>\n";
quelle \n a cosa mi servono?

Rispondi quotando