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!! 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; 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 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
Archived
This topic is now archived and is closed to further replies.