Question

To create your own while loop using PHP and HTML via Notepad++. Your while loop does...

To create your own while loop using PHP and HTML via Notepad++. Your while loop does not have to completely function, meaning it doesn't have to process a lot, just create the loop along with some other mini things in HTML like a few outputs when run

Homework Answers

Answer #1

CODE

<?php

$i=1; //Creating a variable for counting the numbers
while ($i<=10):?>

<h1> This is inside while loop and prining by while loop. The number is= <?php echo $i; ?> </h1>

<?php $i=$i+1; //On the above staatement declaring the html tag and printing the number.
//Incrementing the value to print next number
endwhile; //Ending the while loop

?>

ALL THE EXPLAINATION IS COMMENTED IN THE CODE ITSELF. THIS CODE WILL PRINT YOU 1-10 NUMBERS USING HTML TAG INSIDE WHILE LOOP.

Note: If you have any queries than let me know in the comments. If you find it helpful then a Like would be appreciated

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
PHP calculator problem Create a calculator class that will add, subtract, multiply, and divide two numbers....
PHP calculator problem Create a calculator class that will add, subtract, multiply, and divide two numbers. It will have a method that will accept three arguments consisting of a string and two numbers example ("+", 4, 5) where the string is the operator and the numbers are what will be used in the calculation. It doesn't need an HTML form, all the arguments are put in through the method. The class must check for a correct operator (+,*,-,/), and a...
--USING C# ONLY-- You will create your own on-line shopping store in the console application. You...
--USING C# ONLY-- You will create your own on-line shopping store in the console application. You can choose different products to sell in your store (at least 8 products). You will create an product inventory text file. The program will display two options at the beginning of the program, Customer and Manager. Customer: If this is a new customer, the program will allow the customer to register with their information and assign a unique ID number to the new customer....
Create a function in MIPS using MARS to determine whether a user input string is a...
Create a function in MIPS using MARS to determine whether a user input string is a palindrome or not. Assume that the function is not part of the same program that is calling it. This means it would not have access to your .data segment in the function, so you need to send and receive information from the function itself. The program should be as simple as possible while still using necessary procedures. Follow the instructions below carefully. Instructions: ●...
On your own and then with your group, complete the following questions. Read the following paragraph....
On your own and then with your group, complete the following questions. Read the following paragraph. Questions 1-4 refer to this paragraph. According to Stel, Bos, & Bal, (2008), people have the necessity to believe that the world is a just place, as it makes them feel better about their own decisions and the outcomes they will inevitably experience. As these authors note, “The belief in a just world gives them somewhat of a safety blanket – the assurance that...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>All Pets Veterinary Hospital</title> <style> body { font-family: arial,...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>All Pets Veterinary Hospital</title> <style> body { font-family: arial, sans-serif; font-size: 100%; } /* outer container */    #wrapper { width: 960px; margin: 50px auto; padding: 0px; background-color: rgb(255, 255, 255); /* white */ border: 1px solid #000; /* black */ }    header h1 { text-align: center; }    nav { text-align: center; background: rgb(175, 196, 206); }    address figure { text-align: center; } </style> </head> <body> <div id="wrapper"> <!-- outer...
Please reply to each of the discussion posts in your own words: Discussion 1 I do...
Please reply to each of the discussion posts in your own words: Discussion 1 I do not believe the employers should provide a certain prescription or drug for their workers. This is a personal choice for the worker to make themselves. Some workers work just fine without any additive or supplementary. Others might need a little boost such as caffeine in a coffee or energy drink. The second a company starts providing a certain drug to their employees, is when...
Response for those questions please,  "Resumes and Other Employment Materials" in Strategies for Technical Communication . (...
Response for those questions please,  "Resumes and Other Employment Materials" in Strategies for Technical Communication . ( please don't copy from any website, your own word) Despite the many online job search tools available, why does our textbook say that "The human connection is always the best way to start looking for a job" (133)? Who are some people you could talk to on campus for job search help? Are there people you know outside of campus that could be resources...
Hey i just read your comment and you just need to answer do you agree or...
Hey i just read your comment and you just need to answer do you agree or disagree with ir and explain My Teacher gave this answer and we need to response this answer You need to response this answer why you agree with it or why you disagree and explain You have Two Answer you need to response on your own word Reactions may include: feedback, agreements, disagreements, etc. with supporting facts, material, citations, etc. to support your reaction (or...
How does the support worker encourage Stanley to take an active role in his own support...
How does the support worker encourage Stanley to take an active role in his own support needs? Give one example of this. Given what you know about him, give an example of how strengths- based approach could be used to support Stanley in one of his future goals of catching public transport. What work role boundaries have been crossed by the support workers, and what could be the consequences for working outside of their limitations? Why is so much work...
(Use the case of “Global Treps”) You have been selected as the project manager for the...
(Use the case of “Global Treps”) You have been selected as the project manager for the Global Treps project. You helped to run a local shark tank like event at your college last year as part of a class project, so you have a general idea of what is involved. The schedule goal is six months, and the budget is $120,000. Your favorite professor, Dr. K., and a few of her associates have agreed to fund the project. Your strengths...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT