这是我的编码
$sql="SELECT code,rate, name FROM price_detail WHERE ref_no='VACC'";
echo "<select onchange='vaccines(this)' name='student' value='0'><option> Select Vaccines Type</option>";
foreach ($dbh->query($sql) as $row){
echo "<option value=$row[rate]>$row[name]</option>";
}
echo "</select>";
这里我需要$ row ['name'] 对于$ row ['rate']我取选项的值 我怎么能回复['name']