this is my coding
$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>";
here i need $row['name']
for $row['rate'] i take values of option
how can i retrive ['name']