cris f7af9ddfa9 Patch level :
Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
Prime modifiche


git-svn-id: svn://10.65.10.50/trunk@9788 c028cbd2-c16b-5b4b-a496-9718f37d4682
2001-07-09 13:45:10 +00:00

41 lines
859 B
PHP
Executable File

<html>
<head>
<title></title>
<LINK rel="stylesheet" type="text/css" href="stile.css">
</head>
<body>
<?php
include("required.php");
$db = mysql_connect($ip, $user, $password);
mysql_select_db($dataname,$db);
if (isset($tbl) && isset($id))
{
$criteri = "SELECT * FROM $tbl WHERE id = $id ";
//echo $criteri;
$result = mysql_query($criteri, $db);
$myrow = mysql_fetch_array($result);
$num_fields = mysql_num_fields($result);
echo "<form name=form1><table border=1 align=center>";
for($x = 0; $x < $num_fields; $x++)
{
echo "<tr>";
echo "<td>".mysql_field_name($result, $x)."</td>";
echo "<td><input type=text name='".mysql_field_name($result, $x)."' value='".$myrow[mysql_field_name($result, $x)]."'></td>";
echo "</tr>";
}
echo "</table></form>";
}
echo "<p><a href=# onclick=history.back()>Torna</a></p>";
?>
</body>
</html>