chinclub Posted April 30, 2007 Share Posted April 30, 2007 In this script it charges one dollar per word and the PHP code reads: $cost = $words I want it to charge $5 per word. I hoped it would work like math and I could just type $cost = 5 x $words but NOPE! big error with that. Can anyone tell me the correct way to edit that line. Thanks!! Quote Link to comment https://forums.phpfreaks.com/topic/49246-solved-help-with-edit-of-cost-words-to-cost-5-x-words/ Share on other sites More sharing options...
AndyB Posted April 30, 2007 Share Posted April 30, 2007 $cost = 5 * $words; Quote Link to comment https://forums.phpfreaks.com/topic/49246-solved-help-with-edit-of-cost-words-to-cost-5-x-words/#findComment-241312 Share on other sites More sharing options...
chinclub Posted April 30, 2007 Author Share Posted April 30, 2007 thanks Quote Link to comment https://forums.phpfreaks.com/topic/49246-solved-help-with-edit-of-cost-words-to-cost-5-x-words/#findComment-241316 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.