Shizzx Posted February 7, 2011 Share Posted February 7, 2011 Now, I don't want anyone to just do it for me. I just need someone to explain to how to do this so i can get this done. im like 3 weeks behind in my class and i read the first 3 chapter like 4 times and i still cant get it to work. thank you for any assistance given. For 5 people assign unique variable names for each key piece of information § Name § email § Checking Balance § Savings Balance § Phone Number § Then tell me how much Money in my checking and savings account (i.e. 100 Savings + 200 Checking = 300 Total) 3Plus5.php § Chapter 2 – Variables § Combination of html and php. Php includes html tags. Using the following operators (+, -, *, /) create the following output with your PHP script. 3 + 5 = 8 3 * 5 = 15 5 - 3 = 2 15 / 3 = 5 Quote Link to comment https://forums.phpfreaks.com/topic/226951-can-someone-please-for-the-life-of-me-show-me-how-to-write-this/ Share on other sites More sharing options...
ManiacDan Posted February 7, 2011 Share Posted February 7, 2011 The first one requires much more background information. Are you ready for arrays? Objects? Databases? The second one is very very easy. So easy, that the only hints we can give you is to do it for you. Echo the numbers, use the given operators to perform the calculations. -Dan Quote Link to comment https://forums.phpfreaks.com/topic/226951-can-someone-please-for-the-life-of-me-show-me-how-to-write-this/#findComment-1170968 Share on other sites More sharing options...
Shizzx Posted February 7, 2011 Author Share Posted February 7, 2011 no we havent gotten that far... im trying to read this book but i dont seem to be grasping it http://www.freshwap.net/ebooks/288332-php-for-the-world-wide-web-3rd-edition.html Quote Link to comment https://forums.phpfreaks.com/topic/226951-can-someone-please-for-the-life-of-me-show-me-how-to-write-this/#findComment-1170987 Share on other sites More sharing options...
crmamx Posted February 7, 2011 Share Posted February 7, 2011 Example 2, here is one way. http://www.beginnersphp.co.uk/mathoptut.php Google search is very helpful for questions like yours. I try to only bother the phpFreaks as a last resort. Quote Link to comment https://forums.phpfreaks.com/topic/226951-can-someone-please-for-the-life-of-me-show-me-how-to-write-this/#findComment-1171003 Share on other sites More sharing options...
ManiacDan Posted February 7, 2011 Share Posted February 7, 2011 Well...what are you having trouble with? Page 41 of that book includes the instructions for arrays, use an array for question 1. Quote Link to comment https://forums.phpfreaks.com/topic/226951-can-someone-please-for-the-life-of-me-show-me-how-to-write-this/#findComment-1171030 Share on other sites More sharing options...
Maq Posted February 7, 2011 Share Posted February 7, 2011 It's easier for us if you post your relevant code and tell us what part you're having trouble with or don't understand. Quote Link to comment https://forums.phpfreaks.com/topic/226951-can-someone-please-for-the-life-of-me-show-me-how-to-write-this/#findComment-1171032 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.