garyblackpool Posted September 23, 2009 Report Share Posted September 23, 2009 Hi have tried to write a code myself and i have an unexpected end. God knows if it would work i hope it does made it similar to one in a tutorial. <html><head><tittle> Roll Em!</title></head><body><h1> Button song!!</h1><?print verse();function verse($bodypart) {switch ($bodypart) { case 1: $bodypart = "right hand";break; case 2: $bodypart = "left foot";break;case 3: $bodypart = "left hand";break;case 3: $bodypart = "right foot";break;default: $bodypart = "ran out";}$output =<<<HEREHey! My name is Jo<br>And I work in a button factory<br>I have a husband, three kids, and a family.<br>One day my boss came up to me.<br>He said "Jo, are you busy?"<br>I said,"No"<br>He said to "push this button with your right hand"<br>HERE;return $output;?></body></html> Thanks for looking gary Link to comment Share on other sites More sharing options...
Ingolme Posted September 23, 2009 Report Share Posted September 23, 2009 You forgot a closing brace '}' for this line: function verse($bodypart) { Link to comment Share on other sites More sharing options...
chibineku Posted September 23, 2009 Report Share Posted September 23, 2009 (edited) Bah. Edited September 23, 2009 by chibineku Link to comment Share on other sites More sharing options...
PravinBhat Posted October 12, 2009 Report Share Posted October 12, 2009 Inglome is RightBut have Look at thisprint verse($Where is the argument ($bodypart) ??);function verse($bodypart) {//code}Bye Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now