bashy
01-03-2007, 04:30 PM
Hi peeps
Can anyone advise the bast book/ebook to get that will show me from the very beginning as to what all the variables mean and stuff like that...
I have found 2 but the code is different to vb, for example:
an if statment in vb is like this: <if condition....> blah blah blah </if>
in the books its:
if ($score > 92 )
{
$grade = “A”;
$message = “Excellent!”;
}
elseif ($score <= 92 and $score > 83 )
{
$grade = “B”;
$message = “Good!”;
}
elseif ($score <= 83 and $score > 74 )
{
$grade = “C”;
$message = “Okay”;
}
elseif ($score <= 74 and $score > 62 )
{
$grade = “D”;
$message = “Uh oh!”;
}
else
{
$grade = “F”;
$message = “Doom is upon you!”;
}
echo $message.”\n”;
echo “Your grade is $grade\n”;
Theres no <> bracket things and no /if to finish the statement.
So a book that will actually show/teach exactly what the php in vb is about please?
Can anyone advise the bast book/ebook to get that will show me from the very beginning as to what all the variables mean and stuff like that...
I have found 2 but the code is different to vb, for example:
an if statment in vb is like this: <if condition....> blah blah blah </if>
in the books its:
if ($score > 92 )
{
$grade = “A”;
$message = “Excellent!”;
}
elseif ($score <= 92 and $score > 83 )
{
$grade = “B”;
$message = “Good!”;
}
elseif ($score <= 83 and $score > 74 )
{
$grade = “C”;
$message = “Okay”;
}
elseif ($score <= 74 and $score > 62 )
{
$grade = “D”;
$message = “Uh oh!”;
}
else
{
$grade = “F”;
$message = “Doom is upon you!”;
}
echo $message.”\n”;
echo “Your grade is $grade\n”;
Theres no <> bracket things and no /if to finish the statement.
So a book that will actually show/teach exactly what the php in vb is about please?