Create A PHP Script Which Displays The Capital and Country Name From The Below Array $ceu. Sort The List by The Language of The State
Create A PHP Script Which Displays The Capital and Country Name From The Below Array $ceu. Sort The List by The Language of The State
Create A PHP Script Which Displays The Capital and Country Name From The Below Array $ceu. Sort The List by The Language of The State
SET 1
INTRODUCTION
INSYSSKY develops custom softwares catering to the client’s demand using the most latest
technologies. In addition to this, it gives technical consultancy and system maintenance
services to its clients.
1. Create a php program to construct the following pattern,using nested for loop
***************
*************
***********
*********
*******
*****
***
2. Create a PHP script which displays the capital and country name from the below array $ceu.
Sort the list by the language of the state.
$ceu = array( "Italy"=>"Rome", "Luxembourg"=>"Luxembourg", "Belgium"=> "Brussels",
"Denmark"=>"Copenhagen", "Finland"=>"Helsinki", "France" => "Paris",
"Slovakia"=>"Bratislava", "Slovenia"=>"Ljubljana", "Germany" => "Berlin", "Greece" =>
"Athens", "Ireland"=>"Dublin", "Netherlands"=>"Amsterdam", "Portugal"=>"Lisbon",
"Spain"=>"Madrid", "Sweden"=>"Stockholm", "United Kingdom"=>"London",
"Cyprus"=>"Nicosia", "Lithuania"=>"Vilnius", "Czech Republic"=>"Prague",
"Estonia"=>"Tallin", "Hungary"=>"Budapest", "Latvia"=>"Riga", "Malta"=>"Valetta",
"Austria" => "Vienna", "Poland"=>"Warsaw") ;
Sample Output :
5. Write a PHP program which iterates the integers from 1 to 100. For multiples of three print
"Hello" instead of the number and for the multiples of six print "World". For numbers which
are multiples of both three and six print "HelloWorld".
6. Write a query to update the value of the column ‘BASIC SALARY’ where EMP_ID="1"
from the Table EMPLOYEE DETAILS
8. Create a contact us form with 3 fields (name, email, message) and store in Database with all
form data.
9. Write a SQL statement to insert multiple rows under the column names,
ORIGINAL_PRICE, PROMOTION_NAME, DISCOUNT, MATERIAL_NAME,
NET_PRICE with values in a table named SALES_PROMOTION.
10. Write a SQL statement to drop the index indx_job_id from job_history table.
SET 2
1. Create a php program to construct the following pattern,using nested for loop
12
123
1234
12345
123456
1234567
12345678
2. Write a php program which iterates numbers from 1 to 100.For the numbers multiple of
5,print Five instead of the number,for numbers multiple of 8,print Eight instead of the number
and the for the number which is the multiple of 10,print Multiple of 10.
Description:
Write a PHP program using a nested for loop that creates a chess board.
Conditions:
● You can use an html table having width=”400px” and take “30px” as cell height and
width for check boxes.
4. Write a SQL statement to drop the index indx_job_id from job_history table.
5. Write a PHP program which iterates the integers from 1 to 50. For multiples of three print
"Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are
multiples of both three and five print "FizzBuzz".
9. Create a PHP script which displays the capital and country name from the below array
$ceu. Sort the list by the language of the state.
Sample Output :