<td><input type="text" id="c_cpu" name="count_cpu" value="1"></td>
<td><span class="label" id="pric" value="<?= $Price?>"><?= $Price?></span></td>
echo "<select class='chosen' id='chosen' name='maker' onChange='javascript:selectChanged();'>";
echo '<option value="">-- Выбрать --</option>';
foreach ($arr_get as $value) {
$ID = $value['ID'];
$Price = $value['Price'];
$Model = $value['Model'];
echo '<option value="'.$ID.'">'."$Price"." грн. ----"." $Manufacture"." "."$Model" .'</option>';
}
echo "</select>";
echo "</div>";
value="<?php echo $Price ?>
$query_get = ("SELECT * FROM `table` ORDER BY PRICE ASC");
$result_get = mysql_query($query_get) or die(mysql_error());
while($row_get = mysql_fetch_assoc($result_get)){ $arr_get[] = $row_get; }
if(isset($_POST['edit'])){
$uploaddir = '../../files/processors/';
$apend=date('YmdHis').rand(100,1000).'.jpg';
$uploadfile = "$uploaddir$apend";
if(($_FILES['file']['type'] == 'image/gif' || $_FILES['file']['type'] == 'image/jpeg' || $_FILES['file']['type'] == 'image/png')
&& ($_FILES['file']['size'] != 0 and $_FILES['file']['size']<=512000))
{
if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile))
{
$size = getimagesize($uploadfile);
$query = "UPDATE `Processors` SET `photo`= '$uploadfile' WHERE `ID` = ".(int)$edit_id;
$result=mysql_query($query) or die("Error:".mysql_error());
}
}
$query1 = "UPDATE `table1` SET `Price` = '".$_POST['Price']."', `Model` = '".$_POST['Model']."' WHERE `ID` = ".(int)$edit_id;
$result1=mysql_query($query1) or die("Error:".mysql_error());
}
А можете пример показать?