Inventory Management Administration II - Undefined index: LEDProductUpdateDate
I'm following the Inventory Management Administration tutorials and in Inventory Management Administration II, section 11 and 12, I've changed my select statement on my Inventory Update page to the following...
SELECT LEDid, LEDtitle, LEDmetadesc, LEDproductcode, LEDimgtmb, LEDstock, LEDProductUpdateDate - (SELECT Coalesce(SUM(LEDDetailQuantity),0) FROM LEDorder INNER JOIN LEDdetail ON LEDdetail.LEDDetailOrderID = LEDorder.LEDOrderID WHERE LEDOrderDate > LEDProductUpdateDate AND LEDDetailLEDid = LEDid) AS RemainingInventory FROM LEDprods WHERE LEDid = %s
Now, whenever I try to display the LEDProductUpdateDate on the page, to show the client when the stock was last updated, like so:
<?php echo $row_rsEDITSTOCK['LEDProductUpdateDate']; ?>]
..I get the following error:
Notice: Undefined index: LEDProductUpdateDate in /home/led2014/public_html/ledADMIN/editstock.php on line 306
I've triple checked that I've followed the tutorial correctly and I have renamed all of the fields to match those of my own Order and OrderDetail tables and everything is in order.
Why the error?
NJ