I have to make a select to get the info from db from a particular article id it it about an php to mysql database field edit.
Thanks in advance!
<?
include "db.php";//database connection
$order = "SELECT * FROM comanda
where ['id']=''";
$result = mysql_query($order);
$row = mysql_fetch_array($result);
?>
<form method="post" action="edit_reper.php">
<input type="hidden" name="id" value="<? echo $_GET['id']?>
<tr>
<td>Cod</td>
<td>
<input type="text" name="cod"
size="20" value="<? echo "$row[cod]"?>
</td>
</tr>
<tr>
<td>Denumire Material</td>
<td>
<input type="text" name="den_material"
size="20" value="<? echo "$row[den_material]"?>
</td>
</tr>
<tr>
<td>Greutate Totala</td>
<td>
<input type="text" name="greutate_totala"
size="20" value="<? echo "$row[greutate_totala]"?>
</td>
</tr>
<tr>
<td>Name</td>
<td>
<input type="text" name="cant_reper"
size="20" value="<? echo "$row[cant_reper]"?>
</td>
</tr>
<tr>
<td>Address</td>
<td>
<input type="text" name="lg" size="40"
value="<? echo "$row[lg]"?>
</td>
</tr>
<tr>
<td align="right">
<input type="submit"
name="submit value" value="Edit">