0 nzaman -2 9 Years Ago Can any one please create a php script for me. A script that uses the if....else statement to categorise the marks of a student as First Class,Second Class Upper, Second Class Lower, Pass Or Fail. php
0 Shanti C 106 9 Years Ago can i ask you one small question?? do you know c language...or any other languages.. and this is basic code for if and else statements: $number_three = 3; if ( $number_three == 3 ) { echo "The if statement evaluated to true"; } else { echo "The if statement evaluated to false"; }
0 OPDiscussion Starter nzaman -2 9 Years Ago Yes i do bt am a rookie lol can you do me the if...else statemant for the task i sent b4?
1 Shanti C 106 9 Years Ago see this reference will teach you clearly..http://www.indiana.edu/~istdept/R547/PHPbasics/template/template.phtml?pager=43 or follow this code and try to implement your self: <? function grades ($student, $score, &$grade) { if ($score >= 90 ) $grade = 'A'; else if ($score >= 80 ) $grade = 'B'; else $grade = 'C'; } grades("Bob", 75, $bobsGrade); echo "Bob's grade is $bobsGrade<br />"; ?> Votes + Comments nav33n: good job!
0 OPDiscussion Starter nzaman -2 9 Years Ago No shnti ji i cnt do it its just sressin me sooooo much out! GRRRRRRRR