EXERCISE
1.Firstly,change the double quotes to single quotes. Did it have any effect?
2.Then,put a single quote at the front of your text, and a double quote at the end of the text. What would happens if u run the code?
3.How abput u just delete the dollar sign from the variable name. Then, run the code. What error will show?
4.After that put the dollar sign back, but now delete the semi-colon. Run the code again? What error did you get, this time?
5.Lastly,just try this code:
<html>
<head>
<title>More on Variables</title>
</head>
<body>
<?php
$test_number7 = 7;
print ($test_number7);
?>
</body>
</html>
<head>
<title>More on Variables</title>
</head>
<body>
<?php
$test_number7 = 7;
print ($test_number7);
?>
</body>
</html>
Then change this line:
print ($test_number7);
to this:
print ('$test_number7'); or print ("$test_number7");
That all guys!!! tq!!
N/NOTE:It's well worth experiencing with these errors -If u see them in future, u'll be better able to correct ur errors.
No comments:
Post a Comment