Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-08-2011, 05:41 PM   PM User | #16
johnwboyd
New Coder

 
Join Date: Feb 2008
Posts: 54
Thanks: 19
Thanked 0 Times in 0 Posts
johnwboyd is an unknown quantity at this point
Ok cool that does work for the total thanks and yeah there's a hangup in the calc for the cart as it shows $1 instead of $1,500 for the cart total.

Can you do me a big favor and help me with how to integrate that str_replace function into the code? Perhaps it could go in the prices.php page to simplify the process?
johnwboyd is offline   Reply With Quote
Old 08-08-2011, 06:56 PM   PM User | #17
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,504
Thanks: 45
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
PHP Code:
$Price str_replace(','''$Price); 
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Reply

Bookmarks

Tags
cms, linking data

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 04:14 PM.


Advertisement
Log in to turn off these ads.