Gayner Posted August 29, 2009 Share Posted August 29, 2009 $ibforums->member['points'] -= $style_cost; And my $style_cost += 15.00; is that.. I want to beable to do $ibforums->member['points'] -= $style_cost-$style_cost2,etc..; possible ? if so how? Link to comment https://forums.phpfreaks.com/topic/172370-solved-style_cost-simple-help/ Share on other sites More sharing options...
trq Posted August 29, 2009 Share Posted August 29, 2009 There is nothing wrong with the syntax you have posted. Exactly what is the problem? Link to comment https://forums.phpfreaks.com/topic/172370-solved-style_cost-simple-help/#findComment-908846 Share on other sites More sharing options...
Gayner Posted August 29, 2009 Author Share Posted August 29, 2009 There is nothing wrong with the syntax you have posted. Exactly what is the problem? lol my code will work? i never even thought it would ,lol let me try.. my bad Link to comment https://forums.phpfreaks.com/topic/172370-solved-style_cost-simple-help/#findComment-908849 Share on other sites More sharing options...
Gayner Posted August 29, 2009 Author Share Posted August 29, 2009 There is nothing wrong with the syntax you have posted. Exactly what is the problem? lol my code will work? i never even thought it would ,lol let me try.. my bad OK I got it to work but I need to add .00 after each number: $style_cost15 += 15.00; but I have this code to enter it into db; $lol = $style_cost15+$style_costb+$style_costi; Then I put $lol in my field values and it shows up with out no .00 ?HELP PLEASE LOL Forum Store gayner - 24 August 29, 2009, 1:31 am Bought a Topic Color Addon Purchased Custom (Topic Title) see the -24 is supposed to be - 24.00 why isn't it adding the .00 when it's defined right here: $style_cost15 += 15.00; Link to comment https://forums.phpfreaks.com/topic/172370-solved-style_cost-simple-help/#findComment-908854 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.