0
嗨,我想更新多列,我怎麼能?第一列是shoe1,想添加另一列,但不能如何更新SQL中的多列?
// shoe1
$query = "SELECT shoe_id, shoes_image,
shoes FROM " . $DBPrefix . "shoes";
$params[] = array(':shoe_id', floor($time_passed), 'int');
$db->query($query, $params);
$TPL_shoe1_list = '<select name="shoe1">' . "\n";
while ($row = $db->fetch())
{
$selected = ($row['shoes'] == $shoe1) ? 'selected="true"' : '';
$TPL_shoe1_list .= "\t" . '<option value="' . $row['shoes'] . '" ' . $selected . '>' . $row['shoes'] .'</option>' . "\n";
}
$TPL_shoe1_list .= '</select>' . "\n";
您好感謝爲d的答覆是一種方式ü可以使它對我來說更容易一些,就像使用上面的d代碼併爲我添加第二列這是(shoe2)謝謝 – david