Create a dropdown option using html first.
<select id="quantity" name="quantity">
<option value="1">1$ = 1 Donation Token</option>
<option value="5">5$ = 5 Donation Token</option>
</select>
Then connect your mysql using php.
This is config.php
<?php
$con=mysqli_connect("db_ip,"db_user","db_pass","db_name");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
Then add another code where after you input a value the data will store.
<?php
include("include.php");
$sql="INSERT INTO character (inventory)
VALUES
('$_POST[quantity]')";
if (!mysqli_query($con,$sql))
{
die('Error: ' . mysqli_error());
}
mysqli_close($con);
?>
Not sure if this would work since you have to declare the id of the item that will transfer into the inventory right after you donated, it's just the quantity, well you could always try.
---
56616C68616C6C612053746F7279