[prev in list] [next in list] [prev in thread] [next in thread]
List: freetrade-cvs
Subject: CVS update: freetrade2/modules/database/mysql tax
From: FreeTrade CVS Development <jon () clearink ! com>
Date: 2000-05-31 23:58:55
[Download RAW message or body]
User: leon
Date: 00/05/31 16:58:55
Added: modules/database/mysql tax
Log:
Removing HTML and SQL from admin_tax_rates (also tweaking something in
the standard library)
Revision Changes Path
1.1 freetrade2/modules/database/mysql/tax
Index: tax
===================================================================
<?php
/*
** File: tax
** Description: functions for dealing with the tax table
** Version: $Revision: 1.1 $
** Created: 5/31/2000
** Author: Leon Atkinson
** Email: leon@clearink.com
** CVS Author: $Author: leon $
** Last Revised: $Date: 2000/05/31 23:58:55 $
**
** Log : $Log: tax,v $
** Log : Revision 1.1 2000/05/31 23:58:55 leon
** Log : Removing HTML and SQL from admin_tax_rates (also tweaking something in
** Log : the standard library)
** Log :
**
** Copyright (c) 1999 Working Dogs. All rights reserved.
*/
/*
** Avoid double includes
*/
$included_flag = 'INCLUDE_' . basename(__FILE__);
if(defined($included_flag))
{
return(TRUE);
}
define($included_flag, TRUE);
function getTaxRates()
{
global $DatabaseLink;
$data = array();
$Query = "SELECT State, Rate, TaxShipping " .
"FROM tax ";
$DatabaseResult = mysql_query($query, $DatabaseLink);
if(!($DatabaseResult = mysql_query($Query, $DatabaseLink)))
{
addToLog("Couldn't query tax table!",
LOG_EMERGENCY, __FILE__, __LINE__);
return(FALSE);
}
while($DatabaseRow = mysql_fetch_array($DatabaseResult))
{
$data[] = $DatabaseRow;
}
return($data);
}
?>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic