garyblackpool Posted September 23, 2009 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 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 Share Posted September 23, 2009 Bah. Link to comment Share on other sites More sharing options...
PravinBhat Posted October 12, 2009 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
Archived
This topic is now archived and is closed to further replies.