prepare("SELECT * FROM products WHERE product_id = ?"); $stmt->bind_param("i", $id); $stmt->execute(); $result = $stmt->get_result(); $row = $result->fetch_assoc(); $id = isset($row['product_id']) ? $row['product_id'] : ''; $name = isset($row['name']) ? $row['name'] : ''; $price = isset($row['price']) ? $row['price'] : ''; $discount = isset($row['discount']) ? $row['discount'] : ''; $instock = isset($row['instock']) ? $row['instock'] : ''; $category = isset($row['category']) ? $row['category'] : ''; $description = isset($row['description']) ? $row['description'] : ''; $image1 = $row['image1']; $image2 = $row['image2']; $image3 = $row['image3']; $image4 = $row['image4']; //OPIS $brand = isset($row['brand']) ? $row['brand'] : ''; $series = isset($row['series']) ? $row['series'] : ''; $modelNumber = isset($row['model_number']) ? $row['model_number'] : ''; $weight = isset($row['weight']) ? $row['weight'] : ''; $dimensions = isset($row['dimensions']) ? $row['dimensions'] : ''; $color = isset($row['color']) ? $row['color'] : ''; $manufactuer = isset($row['manufactuer']) ? $row['manufactuer'] : ''; $origin = isset($row['origin']) ? $row['origin'] : ''; $firstDate = isset($row['firstDate']) ? $row['firstDate'] : ''; $energy = isset($row['energy']) ? $row['energy'] : ''; $volts = isset($row['volts']) ? $row['volts'] : ''; $memorySpeed = isset($row['memorySpeed']) ? $row['memorySpeed'] : ''; $usb3 = isset($row['usb3']) ? $row['usb3'] : ''; $usb2 = isset($row['usb2']) ? $row['usb2'] : ''; $processorBrand = isset($row['processorBrand']) ? $row['processorBrand'] : ''; $numProcess = isset($row['numProcess']) ? $row['numProcess'] : ''; $typeMem = isset($row['typeMem']) ? $row['typeMem'] : ''; $HardDD = isset($row['HardDD']) ? $row['HardDD'] : ''; $HardPlat = isset($row['HardPlat']) ? $row['HardPlat'] : ''; $HardFlash = isset($row['HardFlash']) ? $row['HardFlash'] : ''; $HardInterface = isset($row['HardInterface']) ? $row['HardInterface'] : ''; $gpuRAM = isset($row['gpuRAM']) ? $row['gpuRAM'] : ''; $motherboardRAM = isset($row['motherboardRAM']) ? $row['motherboardRAM'] : ''; $matherboardType = isset($row['matherboardTYPE']) ? $row['matherboardTYPE'] : ''; $screenSize = isset($row['screenSize']) ? $row['screenSize'] : ''; $screenRes = isset($row['screenRes']) ? $row['screenRes'] : ''; $screenMax = isset($row['screenMax']) ? $row['screenMax'] : ''; ?> Edit Data

Edit Data

Home