04-20-2011, 11:47 AM
|
#3 (permalink)
|
|
The Acquainted
Join Date: Oct 2008
Location: Cincinnati
Posts: 151
Thanks: 14
|
I figured it out. Thanks Tony here is what I did
of course I used the same HTML selection option and just did this
PHP Code:
$howmany = $_POST['howmany'];
$buyfor = $_POST['buyfor'];
<?php
$pack = mysql_fetch_array(mysql_query("SELECT packprice,packamount FROM $tab[packs] WHERE id='$id';"));
$cost = ($howmany*$pack[packprice]);
$amount = ($howmany*$pack[packamount]);
?>
I know I look stupid for not knowing that but there are still quite a few things I have trouble with when writing PHP
|
|
|
|