Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 08-07-2006, 05:48 PM   #1 (permalink)
Newb Techie
 
Join Date: Mar 2005
Posts: 38
Send a message via AIM to Halchka99 Send a message via Yahoo to Halchka99
Default Help with PHP.. i bet its an easy fix...

}

function display_price($products_price, $products_tax, $quantity = 1) {
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
}
}
?>


guys you see anything wrong with this?

i get an error saying:

Warning: Missing argument 2 for display_price() in /home/.hortense/j17d85m/domain_name.com/includes/classes/currencies.php on line 71
Halchka99 is offline   Reply With Quote
Old 08-08-2006, 09:08 AM   #2 (permalink)
Dope Tech
 
Join Date: Jan 2004
Posts: 3,589
Send a message via ICQ to office politics Send a message via AIM to office politics Send a message via Yahoo to office politics
Default

why do you have a assignment in the function declaration? "$quantity = 1" remove this and replace $quantity with 1 in tep_add_tax
__________________
Tech IMO.com | ExtremeTech.com | ASP Free.com | SysOpt.com | Tech Support Guy.org
DB Forums.com | Cyber Tech Help.com | Lazy Forums.com | Warrior Nation.net

'If you don't stand for somethin you'll fall for anything' - Dr. Dre Been there, done that
office politics is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:02 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0