Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Activity -3 Date: 22/2/2021 Write PHP code to send the current date and time to WB as Static Data in the following format: 23/01/2019 11:26:44

image text in transcribed
image text in transcribed
Activity -3 Date: 22/2/2021 Write PHP code to send the current date and time to WB as Static Data in the following format: 23/01/2019 11:26:44 (Assume that the current date is 23 January 2020 11:26:44am): echo "Today date and time is ". date ("d/m/Y H:i:s"); PHP and WB Output: Today date and time is 23/01/2020 11:26:44 Question: What will be the contents of $a, sb, $c, $d, $e in the following examples? $a = date('Y'); $b=date('a'); $c-date('F'); $d=date('i'); $e=date('H'); (1)(a) PHP code for links 3.php (link page) to. Ist of send the following URLs to WB with one data colleges take (college code) from the array variable Nizwa College $colleges. Every URL is to request the 2 Ibra College page links 3Process.php. The WB outprshuluddioge like 2 $colleges=['NCT'=>'Nizwa College', 'SCT'=>'Salalah College', 'ICT'=>'Ibra College']; 3 echo "

List of Colleges

"; 4. echo "
    "; s foreach($colleges as $k=>$v) // or while(list ($k, $v)=each ($colleges)) { $dtoken = "?cc=$k"; // preparing the data token 8. echo "
  1. "; .. echo "$v"; 10 echo "
  2. "; 12 echo "
"; PHP Output:

List of Colleges

  1. Nizwa College
  2. Ibra College
  3. Salalah College
Example 3b: Processing the data token attached with the URL: (3) (b) PHP code for links 3Process.php (process page) to process data token attached with the URL. The WB output should be as follows: Assume that the user clicked on the link Ibra College and he did NOT change data token values. Thank you. Data Token is: ICT College Name is Ibra College Second Data Token has 12 characters 1. $colleges=['NCT'=>'Nizwa College', 'SCT'=>'Salalah College','ICT'=>' Ibra College']; 2. echo "Thank you. Data Token is {$_GET['cc']} "; 3. echo "College Name is { $colleges ($_GET['cc']]} "; 4. $colgn = $colleges [$_GET['cc']); echo "Second data token has:". strlen($colgn). " characters"; Activity -3 Date: 22/2/2021 Write PHP code to send the current date and time to WB as Static Data in the following format: 23/01/2019 11:26:44 (Assume that the current date is 23 January 2020 11:26:44am): echo "Today date and time is ". date ("d/m/Y H:i:s"); PHP and WB Output: Today date and time is 23/01/2020 11:26:44 Question: What will be the contents of $a, sb, $c, $d, $e in the following examples? $a = date('Y'); $b=date('a'); $c-date('F'); $d=date('i'); $e=date('H'); (1)(a) PHP code for links 3.php (link page) to. Ist of send the following URLs to WB with one data colleges take (college code) from the array variable Nizwa College $colleges. Every URL is to request the 2 Ibra College page links 3Process.php. The WB outprshuluddioge like 2 $colleges=['NCT'=>'Nizwa College', 'SCT'=>'Salalah College', 'ICT'=>'Ibra College']; 3 echo "

List of Colleges

"; 4. echo "
    "; s foreach($colleges as $k=>$v) // or while(list ($k, $v)=each ($colleges)) { $dtoken = "?cc=$k"; // preparing the data token 8. echo "
  1. "; .. echo "$v"; 10 echo "
  2. "; 12 echo "
"; PHP Output:

List of Colleges

  1. Nizwa College
  2. Ibra College
  3. Salalah College
Example 3b: Processing the data token attached with the URL: (3) (b) PHP code for links 3Process.php (process page) to process data token attached with the URL. The WB output should be as follows: Assume that the user clicked on the link Ibra College and he did NOT change data token values. Thank you. Data Token is: ICT College Name is Ibra College Second Data Token has 12 characters 1. $colleges=['NCT'=>'Nizwa College', 'SCT'=>'Salalah College','ICT'=>' Ibra College']; 2. echo "Thank you. Data Token is {$_GET['cc']} "; 3. echo "College Name is { $colleges ($_GET['cc']]} "; 4. $colgn = $colleges [$_GET['cc']); echo "Second data token has:". strlen($colgn). " characters

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago