Thethug Posted October 26, 2009 Share Posted October 26, 2009 Does anyone know how to create a program that takes the $ amount for 8 different departments and give the total amount of sales? Quote Link to comment https://forums.phpfreaks.com/topic/179004-array-question/ Share on other sites More sharing options...
severndigital Posted October 26, 2009 Share Posted October 26, 2009 you will have to give us more info. maybe some code examples of what you are planning to add together. Quote Link to comment https://forums.phpfreaks.com/topic/179004-array-question/#findComment-944401 Share on other sites More sharing options...
Thethug Posted October 26, 2009 Author Share Posted October 26, 2009 I just need the 8 different departments and then textfields right next to them, and then the user puts in 8 random numbers and it outputs the total cost. Quote Link to comment https://forums.phpfreaks.com/topic/179004-array-question/#findComment-944406 Share on other sites More sharing options...
trq Posted October 26, 2009 Share Posted October 26, 2009 That's brilliant. Post some code. Quote Link to comment https://forums.phpfreaks.com/topic/179004-array-question/#findComment-944408 Share on other sites More sharing options...
Thethug Posted October 26, 2009 Author Share Posted October 26, 2009 It's on my dads laptop right now so I'll post it on here tomorrow. It has a lot of errors and problems though. Quote Link to comment https://forums.phpfreaks.com/topic/179004-array-question/#findComment-944414 Share on other sites More sharing options...
severndigital Posted October 26, 2009 Share Posted October 26, 2009 doesn't matter, we need to see what you have to work with before we can even fathom suggesting a solution. Quote Link to comment https://forums.phpfreaks.com/topic/179004-array-question/#findComment-944431 Share on other sites More sharing options...
mikesta707 Posted October 26, 2009 Share Posted October 26, 2009 in order to accomplish what you want you need to supply your script with more cowbell. IE $array = array();//array for data $array = getMoreCowbel($array);//array with cowbell you may also need additional pylons. you can use PHP's ToSS object for that $probe = new ToSS($array);//we need a array with cowbell to pass into the object; $probe->buildAdditionPylons(); //to be safe, you may want to get some vespene too $probe->getVespene(); Quote Link to comment https://forums.phpfreaks.com/topic/179004-array-question/#findComment-944434 Share on other sites More sharing options...
kaveman50 Posted October 26, 2009 Share Posted October 26, 2009 hahaha Quote Link to comment https://forums.phpfreaks.com/topic/179004-array-question/#findComment-944441 Share on other sites More sharing options...
kaveman50 Posted October 26, 2009 Share Posted October 26, 2009 Sounds good severn. Quote Link to comment https://forums.phpfreaks.com/topic/179004-array-question/#findComment-944442 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.