Please forgive me if i explain wrong.
My website has different kinds of ticket name each ticket name has different price.
I would like to do when I select the number through <select>
tag it get the number value multiply by ticket price value.
my code
<?php
session_start();
if (isset($_GET['id'])) {
$id=$_GET['id'];
}
include("database/connection.php");
$sql1="SELECT title,GROUP_CONCAT(ticketname),GROUP_CONCAT(price) FROM `evprice` where title='$id'";
$q4=mysql_query($sql1);
$row1=mysql_fetch_array($q4);
?>
<form action="test.php" method="post">
<div class="gaps">
<div style="float: right; padding-right: 400px; ">
<?php
$rowmain1=explode(',', $row1[2]);
for ($i=0; $i<count($rowmain1); $i++) {
echo "<label style='padding:5px;'>$rowmain1[$i]</label><br>";
}
?>
</div>
<?php
$rowmain=explode(',', $row1[1]);
foreach ($rowmain as $item) {
echo"$item";
?>
<select class="selectpicker selectcon" name="people" style="display: inline;" name ="count" value='$item'>
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<?php
echo "<br>";
}?>
</div>
that means enter image description here If I did mistakes please correct my code