English, asked by manishasanjay29, 11 months ago

Can't get script on hard work

Answers

Answered by syedali8
1

Answer:

Explanation:Hello,

You will see from the following that I am a complete beginner with PHP.

I have recently downloaded the new PHP book by Tom Butler and Kevin Yank, PHP & MYSQL: Novice to Ninja.

I have followed all the instructions explicitly and have overcome some problems getting things working but I now cannot get even the first PHP script on page 16 to work and wonder if anyone can help.

The first script reads thus:

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<title>Random Number</title>

</head>

<body>

<p>Generating a random number between 1 and 10:

<?php

echo rand(1, 10);

?>

</p>

</body>

</html>

This has been copied directly from the ebook so I know there are no typos. When I try to view the webpage it displays the message ‘Generating a random number between 1 and 10:’ but does not show anything else. Viewing the source code from the webpage, I can see the php code is still there but I know it should be replaced with a number.

Has anyone come across this and know where I am going wrong or what I am missing please?

I see my post is not displaying the text of the webpage correctly - it seems to have dropped all the HTML. I don’t know how to post this information, so I need help with that also :frowning:

regards

Brian

Answered by tanuparasharpriya
1

Answer:

Hard work is the most important key to success. The achievements without hard work are impossible. An idle person can never gain anything if they sit and wait for the better opportunity to come. The person who is working hard is able to gain the success and happiness in life. Nothing is easy to be achieved in life without doing any hard work.

The Edison was working for 21 hours a day, and he sleeps only for 2 or 3 hours on the Laboratory tables with his books as his pillow. The prime minister of India late Pt. Nehru, he was working for 17 hours a day and seven days a week. There were no holidays in his calendar. The Mahatma Gandhi Ji worked ceaselessly day and night and he won freedom for his country. The hard work is a price that we pay for success in the life.

The constant vigilance and preparedness to work is the price we have to pay for the success in life. Work is a privilege and a pleasure, the idleness is a luxury that no one can afford. Man is born to work and prosper in life. He like steel shines in use and rusts in rest. The work is worship. The man of actions acts in the living present. There is no tomorrow for him. He makes the best of time. Life is full of strife. It is the action, activity of law of nature. A life of idleness is a life of shame and disgrace. Idle men are intruders on society. We are endowed with brain and limbs, which are meant to be properly exercised. The failure in life is very often due to idleness. The Industry is the key to success, Industry makes and idleness mars a nation

Similar questions