View Single Post
Old 04-20-2011, 11:47 AM   #3 (permalink)
KingOfTheSouth
The Acquainted
 
KingOfTheSouth's Avatar
 
Join Date: Oct 2008
Location: Cincinnati
Posts: 151
Thanks: 14
KingOfTheSouth is on a distinguished road
Default

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
KingOfTheSouth is offline  
Reply With Quote