Gossamer Forum
Home : General : Internet Technologies :

Re: [xiaofei] How to calculate the result of fee?

Quote Reply
Re: [xiaofei] How to calculate the result of fee? In reply to
Hi Andy!

I have been waiting for your reply on how to calculate the result of fee. Here is my code, Is it OK for me type in the retrive(output) page? It still can't work. Which step I did wrong? Does cursor support MySQL?

<? PHP

$Host = "192.165.1.1";

$User = "xxxx";

$password = "xxxx";

$DBName = "XXXX";

$TableName = "XXXX";

$Link = mysql_connect($Host, $User, $Password);

$Query = "Select amount from $TableName";

MySQL_select_db($DBName, $Link);

$Result = MySQL_db_query($DBName, $Query, $Link);

Class PaymentAccount

{

var $balance = 50000.00;

function CheckingAccount($amount)

{ $this->balance = $amount;}

function clear_check($amount)

{$this->balance=$this->balance-$amount;}

function get_balance()
{
return $this->balance;
}

}

?>
Subject Author Views Date
Thread How to calculate the result of fee? xiaofei 9356 May 7, 2003, 7:08 PM
Post Re: [xiaofei] How to calculate the result of fee?
Andy 9010 May 8, 2003, 2:05 AM
Thread Re: [xiaofei] How to calculate the result of fee?
xiaofei 8822 May 8, 2003, 4:41 PM
Post Re: [xiaofei] How to calculate the result of fee?
xiaofei 8611 Jul 24, 2003, 2:15 PM
Thread Re: [xiaofei] How to calculate the result of fee?
xiaofei 8603 Jul 26, 2003, 5:21 PM
Post Re: [xiaofei] How to calculate the result of fee?
Stealth 8578 Jul 27, 2003, 5:20 PM