Context: OP posted his code within the comments; https://pastebin.com/LM1ecp13
Solution:
This line;$fetch = mysqli_fetch_array(mysqli_query($conn,"SELECT id, name, price FROM stock WHERE id='$cart[wid]'"));
Is the problem. You are selecting id, name, price
but you are missing 28price
hence why you are getting the undefined index error…
Your query should be "SELECT id, name, price, 28price FROM stock WHERE id='$cart[wid]'"
1
solved php pull field with variable+string