我有一系列通过调用 MySQL 数据库动态填充的链接选择。
这很好用,但我必须在标签中添加另一列“Invm_InventoryDesc”,但在其中一个选择中保持每个选项的值相同(Invl_InventoryNumber)。
我试图更改查询以包含 Invm_InventoryDesc 但它破坏了它......我做错了什么?
default:
if (strpos($key, 'brandSelect-') === 0) {
$callType = str_replace('brandSelect-', '', $key);
$resBrands = mysql_query('SELECT Invl_InventoryNumber FROM ' . DB_TABLE1
. ' WHERE Invl_LocationId = ' . mysql_real_escape_string($callType) . " ORDER BY Invl_InventoryNumber");
$select = new SelectBox('What part number are you looking for?', 'Pick a part');
for ($i = 0; list($brand) = mysql_fetch_row($resBrands); $i++) {
$select->addItem($brand, 'result-' . $brand . '-' . $callType);
}