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.
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.
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";
}
Yes i do bt am a rookie lol can you do me the if...else statemant for the task i sent b4?
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 />";
?>
Im trying bt i cant seem to do it!
first try then post your code where error goes...
No shnti ji i cnt do it its just sressin me sooooo much out! GRRRRRRRR
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.