Hello as the title suggests, I am trying to pass over multiple parameters with the option
drop down list and dont know how to do it. I have this code below:
echo '<select name="tickets"><option></option>';
while($row2 = sqlsrv_fetch_array($stmt2)){
$tName = $row2["tickName"];
echo "<option value=\"$tickID\">$tName</option>";
}
echo '</select>';
How do I also add in tick price? I have tried this:
echo '<select name="tickets"><option></option>';
while($row2 = sqlsrv_fetch_array($stmt2)){
$tName = $row2["tickName"];
$tPrice = $row2["tickPrice"];
echo "<option value=\"$tickID,$tPrice\">$tName</option>";
}
echo '</select>';
But it wont work, any help is much welcomed. Also while I'm here does anyone have good resources for using SQL Server with the sqlsrv
api? I can only find the PHP manual site but was wondering if there was perhaps more?