i have a variable that is passed from a select list, the value of the select list is a stockID
<?php echo $XCart_StockID = ${$XCName}["contents"][0][$XCart__i]; ?>
this is constructed from an array
$useSessions = false; $XCName = "mejobbo"; $XCTimeout = 1; $XC_ColNames=array("StockID","ProductID","Size","Quantity","Name","Price","Stock","Total"); $XC_ComputedCols=array("","","","","","","","Price"); require_once('XCInc/XCart.inc');
i have a tables that contains joined references
mejobbo_products
-----------------------------
ProductID
the stock table
mejobbo_Stock
-----------------------------
StockID
ProductID
SizeID
and the size table
mejobbo_SizeList
-----------------------------
SizeID
Size
i need to know how to get all the data from table mejobbo_Stock based on the <?php echo $XCart_StockID; ?> variable
thanks