Create a new variable that represents the number of messages


Problem

I. Should to create a new PHP file called lab1.php

II. Inside, add the HTML skeleton code and give its title "Lab Week 1"

III. Within the body tag, add a heading-2 tag with the words "Direct Messages"

IV. Within the body tag, under the heading-2, add a section tag.

V. Inside the section tag, open up a PHP scope.

VI. Within the PHP scope, create a new variable that represents the number of messages, called num_msgs and set it equal to 5.

VII. Create another new variable called online (representing who is online) and set it equal to "Adam".

VIII. Underneath, create a new if statement.

i. If the number of messages is less than 3 or if "Cally" is online, then echo out "Call Cally"
ii. Otherwise, echo "Read messages"

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create a new variable that represents the number of messages
Reference No:- TGS03223056

Expected delivery within 24 Hours