0% found this document useful (0 votes)
26 views37 pages

abhishek itr report

This document is an industrial training report submitted by student Homkar Udit Umeshrao, detailing his six-week internship at Atharva IT Solution under the guidance of Mr. Dhase G.N. It includes acknowledgments, a weekly overview of activities, and a comprehensive introduction to web development technologies such as HTML, CSS, JavaScript, and PHP. The report serves as a record of independent work and fulfills the requirements for the Diploma in Computer Technology.

Uploaded by

DEVILS GAMERS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views37 pages

abhishek itr report

This document is an industrial training report submitted by student Homkar Udit Umeshrao, detailing his six-week internship at Atharva IT Solution under the guidance of Mr. Dhase G.N. It includes acknowledgments, a weekly overview of activities, and a comprehensive introduction to web development technologies such as HTML, CSS, JavaScript, and PHP. The report serves as a record of independent work and fulfills the requirements for the Diploma in Computer Technology.

Uploaded by

DEVILS GAMERS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 37

MAHARASHTRA STATE BOARD OF TECHNICAL

EDUCATION MUMBAI

INDUSTRIAL TRAINING REPORT


Submitted by
Student Name
Homkar Udit Umeshrao

Under the Guidance of


MR. DHASE G.N
(MENTOR)
Lecturer
Department of Computer Technology

In partial fulfillment of SIX weeks


INDUSTRIAL TRAINING

Department of Computer Technology


YASHWANTRAO CHAVAN INSTITUTE OF POLYTECHNIC BEED

(2023-2024)

iv
YASHWANTRAO CHAVAN INSTITUTE OF POLYTECHNIC
BEED
(Affiliated to Maharashtra State Board of Technical Education, Mumbai)

CERTIFICATE
This is to certify that the INDUSTRIAL TRAINING has been successfully completed by
Students of Second Year Diploma in Computer Technology,
Student Name
Homkar Udit Umeshrao

(Enrollment Number: - 2211580158 AND Seat number: - )

In partial fulfillment of the requirements for the award of the Diploma in Computer
Technology for second year (4TH Semester) Industrial Training work of Maharashtra State
Board of Technical Education, Mumbai. The matter embodied in this industrial training
report is a record of their own independent work carried out by them under my supervision
and guidance. The matter embodied in this report has not been submitted for any award of
any Degree or Diploma.

Dr.Bapurao
Mr.Dhase G.N Mr.Deshmukh J.V G.Marlapall
e

Mentor
H.O.D Principal

v
Certificate

vi
ACKNOWLEDGEMENTS

It gives me immense pleasure to express my deepest sense of gratitude and sincere


thanks highly respected and esteemed guide/mentor Mr. Dhase G.N, Lecturer in Computer
Engineering Department, for their valuable guidance, encouragement and help for completing
Industrial Training work at Atharva IT Solution . Their useful suggestions for this whole
work and co-operative behavior are sincerely acknowledged.
I would like to express my sincere thanks to Mr.Deshmukh J.V, Head of computer
Technology Department for giving me this opportunity to undertake this project and for his
kind hearted support. I would also like to thank Dr.Bapurao G.Marlapalle, Principal for
whole hearted support. I am also grateful to my teachers Mrs. Gaikwad S.S Madam, Mr.
Dhase .G.N. sir, Mr.Damkonodwar G.K sir for their constant support and guidance.
I also wish to express my indebtedness to my parents as well as my family member
whose blessings and support always helped me to face the challenges ahead. At the end I
would like to express my sincere thanks to all Experts in Atharva IT Solution who taught us
IoT, COMPUTER NETWORKS, PYTHON, SOFTWARE TESTING, OPERATION IN
SOFTWARE INDUSTRY, during this Industrial training work.

Mr.Homkar Udit Umeshrao


Enrollment Number:-
2211580158
Seat number: -

vi
i
ACKNOWLEDGEMENT

First I would like to thank Rahul Joshi, the Vice President of Aatharv
IT Solution for giving me the opportunity to do an internship within the
organization.

I also would like all the people that worked along with me
Aatharv IT Solution with their patience and openness they created an
enjoyable working environment.

It is indeed with a great sense of pleasure and immense sense


of gratitude that I acknowledge the help of these individuals.

I am highly indebted to Principal Dr.Bapurao.G.Marlapalle, for the


facilities provided to accomplish this internship.

I would like to thank my Head of the Department Mr.


Deshmukh.J.V for his constructive criticism throughout my internship.

I would like to thank Mr.Dhase G.N internship coordinator


Department of CSE for their support and advices to get and complete
internship in above said organization.

I am extremely great full to my department staff members and


friends who helped me in successful completion of this internship.
Student Name(Rohan Abuj , Aniket Fartade)

vi
ii
WEEKLY OVERVIEW OF INTERNSHIP ACTIVITIES

DATE NAME OF THE TOPIC/MODULE COMPLETED

03/06/24 Introduction to company

04/06/24 Introduction to HTML

05/06/24 Formatting ,Heading,paragraph,HTML forms,unordered list


Description list. Frame’s, JavaScript, HTML Layout, HTML
responsive, etc.
06/06/24 Introduction to CSS

07/06/24 CSS properties ,CSS Advance,CSS Design

DATE NAME OF THE TOPIC/MODULE COMPLETED

08/06/24 Introduction on Web Development

10/06/24 Concept of Html

11/06/24 Advance Concept on Html

12/06/24 Introduction of CSS

13/06/24 Creation of Web Layout

vi
DATE NAME OF THETOPIC/MODULE COMPLETED

14/06/24 Introduction on Boot Strap

15/06/24 Advance Concept Of Boot Strap

17/06/24 Form Creation

18/06/24 Animation using Boot Strap and CSS

19/06/24 Creation of Web Pages Using bootstrap

DATE NAME OF THETOPIC/MODULE COMPLETED

20/06/24 Introduction on JavaScript

21/06/24 Concept of JavaScript

22/06/24 Dom And Bom Concept

24/06/24 Form validation

25/06/24 Client side coding

vii
DATE NAME OF THE TOPIC/MODULE COMPLETED

26/06/24 Lecture on different phases in RMG

27/06/24 Concepts on PHP, functions in PHP

28/06/24 Installation of XAMPP server, how to execute PHP programs


using XAMPP server
29/06/24 How to connect with DB using MYSQL server in PHP using
XAMPP server
01/07/24 Sample Programs on PHP using XAMPP

DATE NAME OF THE TOPIC/MODULE COMPLETED

02/07/24 Designing of Login page, Registration page using


Bootstrapping, CSS
03/07/24 Designing of Background verification using Bootstrapping, CSS

04/07/24 Designing of Induction page, Employee page using


Bootstrapping, CSS
05/07/24 Execute the pages and pages connect with MYSQL database in
XAMPP.
06/07/24 Report the defects

viii
DATE NAME OF THE TOPIC/MODULE COMPLETED

08/07/24 Designing of Admin page

09/07/24 Creating Staff Form

10/07/24 Creating Branch Form

11/07/24 Assign Branch Form

12/07/24 Handling Ticket Form

DATE NAME OF THE TOPIC/MODULE COMPLETED

13/07/24 Designing of Staff Page

ix
INDEX

S.no CONTENTS Pg.no

1. Introduction 1
1.1 Modules 2
2. Analysis 3
2.1 Requirement analysis 4
3. System requirements specifications
3.1 System configuration 6
3.2 Software requirements 6
3.3 Hardware requirements 6
4. Technology
4.1 PHP 8
4.2 HTML 8
5. Coding 10

6. Screenshots 17

7. Conclusion 20

8. Bibliography 21

x
Internship Objectives

 Internships are generally thought of to be reserved for college students looking


to gain experience in a particular field. However, a wide array of people can
benefit from Training Internships in order to receive real world experience and
develop their skills.
 An objective for this position should emphasize the skills you already possess in
the area and your interest in learning more

 Internships are utilized in a number of different career fields, including


architecture, engineering, healthcare, economics, advertising and many more.
 Some internship is used to allow individuals to perform scientific research while
others are specifically designed to allow people to gain first-hand experience
working.

 Utilizing internships is a great way to build your resume and develop skills that
can be emphasized in your resume for future jobs. When you are applying for a
Training Internship, make sure to highlight any special skills or talents that can
make you stand apart from the rest of the applicants so that you have an
improved chance of landing the position.

xi
1. INTRODUCTION

The Company:

Soft-Smart Technology is an independent software development and test automation


services company, driven by industry experts and thought leaders in software
development and test automation domain. We work with some of the smartest software-
driven businesses around the Maharashtra state including software product start-ups as
well as bank application and digital marketing. As a focused partner globally with in-
depth expertise in testing solutions we provide functional, Test Automation, Script less
Test Automation, Performance Testing and Mobile application testing services; serving
multiple industries.

Programmers and opportunities:

The Institute combines pioneering research with top class education. An innovative
curriculum allows the student flexibility in selecting courses and projects. Students,
even at the undergraduate level, get to participate in on-going research and technology
development - an opportunity unprecedented in India. As a result, a vibrant
undergraduate programmer co- exists with a strong postgraduate programmer.

Methodology:

This project is to provide classifieds information. The website will provide


different kinds of facilities to the user like ticket creation, ticket handling, adding staff.
The user should register to utilize the site. Each user will be given UserId and password.
Using that Id and password user can enter in to the site and can put the ads. Those who
want to view the information they can without registration. This project is implemented
using php as the front-end and MySQL as back-end.

xii
Benefits to the company / institution through your report:

The Institute combines pioneering research with top class education. An innovative
curriculum allows the student flexibility in selecting courses and projects. Students,
even at the undergraduate level, get to participate in on-going research and technology
development - an opportunity unprecedented in India.

vi
2.Web Development
Internet
The Internet is essentially a global network of computing resources. You can think of
the Internet as a physical collection of routers and circuits as a set of shared resources.
Some common definitions given in the past include −

 A network of networks based on the TCP/IP communications protocol.


 A community of people who use and develop those networks.
 A community of people who use and develop those networks.
Internet-Based Services
Some of the basic services available to Internet users are −
 Email − A fast, easy, and inexpensive way to communicate with other Internet
users around the world.
 Telnet − Allows a user to log into a remote computer as though it were a local
system.
 FTP − Allows a user to transfer virtually every kind of file that can be stored on a
computer from one Internet-connected computer to another.
 UseNet news − A distributed bulletin board that offers a combination news and
discussion service on thousands of topics.
 World Wide Web (WWW) − A hypertext interface to Internet information
resources.
WWW
WWW stands for World Wide Web. A technical definition of the World Wide Web is −
All the resources and users on the Internet that are using the Hypertext Transfer
Protocol (HTTP).
In simple terms, The World Wide Web is a way of exchanging information between
computers on the Internet, tying them together into a vast collection of interactive
multimedia resources.
HTTP
HTTP stands for Hypertext Transfer Protocol. This is the protocol being used to
transfer hypertext documents that makes the World Wide Web possible.
A standard web address such as Yahoo.com is called a URL and here the prefix http
indicates its protocol

4
URL
URL stands for Uniform Resource Locator, and is used to specify addresses on the
World Wide Web. A URL is the fundamental network identification for any resource
connected to the web (e.g., hypertext pages, images, and sound files).
A URL will have the following format −

protocol://hostname/other_information

The protocol specifies how information is transferred from a link. The protocol used for
web resources is Hypertext Transfer Protocol (HTTP). Other protocols compatible with
most web browsers include FTP, telnet, newsgroups, and Gopher.
The protocol is followed by a colon, two slashes, and then the domain name. The
domain name is the computer on which the resource is located.
Links to particular files or subdirectories may be further specified after the domain
name. The directory names are separated by single forward slashes.
Website
website is a collection of various pages written in HTML markup language. This is a
location on the web where people can find tutorials on latest technologies. Similarly,
there are millions of websites available on the web.
Each page available on the website is called a web page and first page of any website is
called home page for that site.
Web Server
Every Website sits on a computer known as a Web server. This server is always
connected to the internet. Every Web server that is connected to the Internet is given a
unique address made up of a series of four numbers between 0 and 256 separated by
periods. For example, 68.178.157.132 or 68.122.35.127.
When you register a Web address, also known as a domain name, such as atharva.com
you have to specify the IP address of the Web server that will host the site.
We will see different type of Web servers in a separate chapter.
Browser
Web Browsers are software installed on your PC. To access the Web, you need a web
browser, such as Netscape Navigator, Microsoft Internet Explorer or Mozilla Firefox.
Currently you must be using any sort of Web browser while you are navigating through
my site atharva.com. On the Web, when you navigate through pages of information this
is commonly known as browsing or surfing.
We will see different type of Web browsers in a separate chapter.

5
SMTP Server
SMTP stands for Simple Mail Transfer Protocol Server. This server takes care of
delivering emails from one server to another server. When you send an email to an
email address, it is delivered to its recipient by a SMTP Server.
ISP
ISP stands for Internet Service Provider. They are the companies who provide you
service in terms of internet connection to connect to the internet.
You will buy space on a Web Server from any Internet Service Provider. This space will
be used to host your Website.

HTML
HTML stands for Hyper Text Markup Language. This is the language in which we write
web pages for any Website. Even the page you are reading right now is written in
HTML.
This is a subset of Standard Generalized Mark-Up Language (SGML) for electronic
publishing, the specific standard used for the World Wide Web.
Hyperlink
A hyperlink or simply a link is a selectable element in an electronic document that
serves as an access point to other electronic resources. Typically, you click the
hyperlink to access the linked resource. Familiar hyperlinks include buttons, icons,
image maps, and clickable text links.
DNS
DNS stands for Domain Name System. When someone types in your domain name,
www.example.com, your browser will ask the Domain Name System to find the IP that
hosts your site. When you register your domain name, your IP address should be put in
a DNS along with your domain name. Without doing it your domain name will not be
functioning properly.
W3C
W3C stands for World Wide Web Consortium which is an international consortium of
companies involved with the Internet and the Web.

6
HTML

HTML or HTML 5 tutorial provides basic and advanced concepts of html. Our HTML
tutorial is developed for beginners and professionals. The major points of HTML are
given below:

HTML stands for Hyper Text Markup Language.

HTML is used to create web pages.

HTML is widely used language on the web.

We can create static website by HTML only.

HTML Example with HTML Editor

In this tutorial, you will get a lot of examples, in fact one example for every chapter. you
can also edit and run these examples, with our online HTML editor.

1. <!DOCTYPE>
2. <html>
3. <body>
4. <h1>Write Your First Heading</h1>
5. <p>Write Your First Paragraph. </p>
6. </body>
7. </html>
Atharv IT Solution

HTML 5 Tags

In this tutorial, we will learn HTML 5 tags such as audio tag, video tag, canvas tag, HTML
svg, HTML geolocation, HTML drag and drop etc.

Atharv IT Solution All HTML Tags

At last, we will learn all HTML tags one by one for example, marquee tag, textarea tag, br
tag, hr tag, pre tag, h tag, code tag, input tag, title tag, meta tag, script tag, style tag etc.

7
What is HTML

HTML is an acronym which stands for Hyper Text Markup Language. Let's see what is
Hyper Text and what is Markup Language?

Hyper Text: Hyper Text simply means "Text within Text". A text has a link within it, is a
hypertext. Every time when you click on a word which brings you to a new webpage,
you have clicked on a hypertext.

Markup language: A markup language is a programming language that is used make


text more interactive and dynamic. It can turn a text into images, tables, links etc.

An HTML document is made of many HTML tags and each HTML tag contains different
content.

Let's see a simple example of HTML.

1. <!DOCTYPE>
2. <html>
3. <body>
4. <h1>Write Your First Heading</h1>
5. <p>Write Your First Paragraph. </p>
6. </body>
7. </html>

Description of HTML example

DOCTYPE: It defines the document type.

html: Text between html tag describes the web document.

body: Text between body tag describes the body content of the page that is visible to
the end user.

h1 : Text between h1 tag describes the heading of the webpage.

p : Text between p tag describes the paragraph of the webpage.

8
Features of HTML

1) It is a very easy and simple language. It can be easily understood and modified.

2) It is very easy to make effective presentation with HTML because it has a lot
of formatting tags.

3) It is a markup language so it provides a flexible way to design web pages along with
the text.

4) It facilitates programmers to add link on the web pages (by html anchor tag) , so it
enhances the interest of browsing of the user.

5) It is platform-independent because it can be displayed on any platform like


Windows, Linux and Macintosh etc.

6) It facilitates the programmer to add Graphics, Videos, and Sound to the web pages
which makes it more attractive and interactive.

HTML Tags

HTML tags contain three main parts: opening tag, content and closing tag. But some
HTML tags are unclosed tags.

When a web browser reads an HTML document, browser reads it from top to bottom
and left to right. HTML tags are used to create HTML documents and render their
properties. Each HTML tags have different properties.

Syntax
<tag> content </tag>

HTML Tag Examples

Note: HTML Tags are always written in lowercase letters. The basic HTML tags are given
below:

<p> Paragraph Tag </p>

9
<h2> Heading Tag </h2>

<b> Bold Tag </b>

<i> Italic Tag </i>

<u> Underline Tag</u>

Unclosed HTML Tags

Some HTML tags are not closed, for example br and hr.

<br> Tag: br stands for break line, it breaks the line of the code.

<hr> Tag: hr stands for Horizontal Rule. This tag is used to put a line across the
webpage.

HTML Meta Tags

DOCTYPE, title, link, meta and style

HTML Text Tags

<p>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <strong>, <em>, <abbr>, <acronym>,
<address>, <bdo>, <blockquote>, <cite>, <q>, <code>, <ins>, <del>, <dfn>, <kbd>, <pre>,
<samp>, <var> and <br>

HTML Link Tags

<a> and <base>

HTML Image and Object Tags

<img>, <area>, <map>, <param> and <object>

10
HTML List Tags

<up>, <ol>, <li>, <dl>, <dt> and <dd>

HTML Table Tags

table, tr, td, th, tbody, thead, tfoot, col, colgroup and caption

HTML Form Tags

form, input, textarea, select, option, optgroup, button, label, fieldset and legend

HTML Scripting Tags

script and noscript

11
What is CSS

CSS is an acronym stands for Cascading Style Sheets. It is a style sheet language which is
used to describe the look and formatting of a document written in markup language. It
provides an additional feature to HTML. It is generally used with HTML to change the
style of web pages and user interfaces. It can also be used with any kind of XML
documents including plain XML, SVG and XUL.

CSS is used along with HTML and JavaScript in most websites to create user interfaces
for web applications and user interfaces for many mobile applications.

What does CSS do

o You can add new looks to your old HTML documents.


o You can completely change the look of your website with only a few changes in
CSS code.

Why use CSS

These are the three major benefits of CSS:

1) Solves a big problem

Before CSS, tags like font, color, background style, element alignments, border and size
had to be repeated on every web page. This was a very long process. For example: If you
are developing a large website where fonts and color information are added on every
single page, it will be become a long and expensive process. CSS was created to solve
this problem. It was a W3C recommendation.

2) Saves a lot of time

CSS style definitions are saved in external CSS files so it is possible to change the entire
website by changing just one file.

3) Provide more attributes

CSS provides more detailed attributes than plain HTML to define the look and feel of the
website.

12
CSS Syntax

A CSS rule set contains a selector and a declaration block.

Selector: Selector indicates the HTML element you want to style. It could be any tag like
<h1>, <title> etc.

Declaration Block: The declaration block can contain one or more declarations
separated by a semicolon. For the above example, there are two declarations:

1. color: yellow;
2. font-size: 11 px;

Each declaration contains a property name and value, separated by a colon.

Property: A Property is a type of attribute of HTML element. It could be color, border


etc.

Value: Values are assigned to CSS properties. In the above example, value "yellow" is
assigned to color property.

13
What is Bootstrap

o Bootstrap is the most popular HTML, CSS and JavaScript framework for
developing a responsive and mobile friendly website.
o It is absolutely free to download and use.
o It is a front-end framework used for easier and faster web development.
o It includes HTML and CSS based design templates for typography, forms, buttons,
tables, navigation, modals, image carousels and many others.
o It can also use JavaScript plug-ins.
o It facilitates you to create responsive designs.

History of Bootstrap

Bootstrap was developed by Mark Otto and Jacob Thornton at Twitter.It was released as
an open-source product in August 2011 on GitHub.

In June 2014 Bootstrap was the No.1 project on GitHub

Why use Bootstrap

Following is the main advantage of Bootstrap:

o It is very easy to use. Anybody having basic knowledge of HTML and CSS can use
Bootstrap.
o It facilitates users to develop a responsive website.
o It is compatible on most of browsers like Chrome, Firefox, Internet Explorer,
Safari and Opera etc.

14
What is a responsive website

A website is called responsive website which can automatically adjust itself to look good
on all devices, from smart phones to desktops etc.

What Bootstrap package contains

Scaffolding: Bootstrap provides a basic structure with Grid System, link styles, and
background.

CSS: Bootstrap comes with the feature of global CSS settings, fundamental HTML
elements style and an advanced grid system.

Components: Bootstrap contains a lot of reusable components built to provide


iconography, dropdowns, navigation, alerts, pop-overs, and much more.

JavaScript Plugins: Bootstrap also contains a lot of custom jQuery plugins. You can
easily include them all, or one by one.

Customize: Bootstrap components are customizable and you can customize Bootstrap's
components, LESS variables, and jQuery plugins to get your own style.

First Bootstrap Example

Add the HTML 5 doctype: Bootstrap uses HTML elements and CSS properties, so you
have to add the HTML 5 doctype at the beginning of the page with lang attribute and
correct character set.

Ex:

1. <!DOCTYPE html>
2. <html lang="en">
3. <head><meta http-equiv="Content-Type" content="text/html; charset=windows-
1252">
4.
5. <title>Any title</title>
6. </head>
7. <body>
8. //write code
9. </body>
10. </html>

15
Bootstrap is mobile friendly: Bootstrap 3 is designed to be responsive to mobile
devices.

Mobile-first styles are part of the core framework of Bootstrap.You have to add the
following <meta> tag inside the <head> element for proper rendering and touch
zooming:

1. <meta name="viewport" content="width=device-width, initial-scale=1">

Note: The "width=device-width" part is used to set the width of the page to follow the
screen-width of the device (vary according to the devices).

The initial-scale=1 part is used to set the initial zoom level when the page is first
loaded by the browser.

Containers: container is used to wrap the site contents. There are two container
classes.

o The .container class provides a responsive fixed width container.


o The .container-fluid class provides a full width container, spanning the entire
width of the viewport.

16
JavaScript

JavaScript is an object-based scripting language that is lightweight and cross-platform.

JavaScript is not compiled but translated. The JavaScript Translator (embedded in


browser) is responsible to translate the JavaScript code.

Where JavaScript is used

JavaScript is used to create interactive websites. It is mainly used for:

o Client-side validation
o Dynamic drop-down menus
o Displaying data and time
o Displaying popup windows and dialog boxes (like alert dialog box, confirm dialog
box and prompt dialog box)
o Displaying clocks etc.

JavaScript Example

Javascript example is easy to code. JavaScript provides 3 places to put the JavaScript
code: within body tag, within head tag and external JavaScript file.

Let’s create the first JavaScript example.

1. <script type="text/javascript">
2. document.write("JavaScript is a simple language for atharva learners");
3. </script>

The script tag specifies that we are using JavaScript.

The text/javascript is the content type that provides information to the browser about
the data.

The document.write() function is used to display dynamic content through JavaScript.


We will learn about document object in detail later.

3 Places to put JavaScript code


1. Between the body tag of html
2. Between the head tag of html
3. In .js file (external javaScript)

17
JavaScript Example : code between the body tag

In the above example, we have displayed the dynamic content using JavaScript. Let’s see
the simple example of JavaScript that displays alert dialog box.

1. <script type="text/javascript">
2. alert("Hello Atharva");
3. </script>

JavaScript Example : code between the head tag

Let’s see the same example of displaying alert dialog box of JavaScript that is contained
inside the head tag.

In this example, we are creating a function msg(). To create function in JavaScript, you
need to write function with function_name as given below.

To call function, you need to work on event. Here we are using onclick event to call
msg() function.

1. <html>
2. <head>
3. <script type="text/javascript">
4. function msg(){
5. alert ("Hello Atharva");
6. }
7. </script>
8. </head>
9. <body>
10. <p>Welcome to JavaScript</p>
11. <form>
12. <input type="button" value="click" onclick="msg()"/>
13. </form>
14. </body>
15. </html>

18
External JavaScript file

We can create external JavaScript file and embed it in many html page.

It provides code re usability because single JavaScript file can be used in several html
pages.

An external JavaScript file must be saved by js. extension. It is recommended to embed


all JavaScript files into a single file. It increases the speed of the webpage.

Let’s create an external JavaScript file that prints Hello Atharva in a alert dialog box.

Message.js

1. function msg () {
2. alert ("Hello Atharva");
3. }

Let’s include the JavaScript file into html page. It calls the JavaScript function on button
click.

index.html

1. <html>
2. <head>
3. <script type="text/javascript" src="message.js"></script>
4. </head>
5. <body>
6. <p>Welcome to JavaScript</p>
7. <form>
8. <input type="button" value="click" onclick="msg ()"/>
9. </form>
10. </body>
</html>

19
PHP

PHP tutorial for beginners and professionals provides deep knowledge of PHP scripting
language. Our PHP tutorial will help you to learn PHP scripting language easily.

This PHP tutorial covers all the topics of PHP such as introduction, control statements,
functions, array, string, file handling, form handling, regular expression, date and time,
object-oriented programming in PHP, math, PHP mysql, PHP with ajax, PHP with jquery
and PHP with XML.

What is PHP

o PHP stands for HyperText Preprocessor.


o PHP is an interpreted language, i.e. there is no need for compilation.
o PHP is a server-side scripting language.
o PHP is faster than other scripting language e.g. asp and jsp.

PHP Example

In this tutorial, you will get a lot of PHP examples to understand the topic well. The PHP
file must be saved with .php extension. Let's see a simple PHP example.

File: hello.php
1. <!DOCTYPE>
2. <html>
3. <body>
4. <?php
5. echo "<h2>Hello by PHP</h2>";
6. ?>
7. </body>
8. </html>

Output:

Hello by PHP

20
Web Development

PHP is widely used in web development now a days. Dynamic websites can be easily
developed by PHP. But you must have the basic the knowledge of following technologies
for web development as well.

o HTML
o CSS
o JavaScript
o AJAX
o XML and JSON
o JQuery

What is PHP

PHP is a open source, interpreted and object-oriented scripting language i.e. executed at
server side. It is used to develop web applications (an application i.e. executed at server
side and generates dynamic page).

What is PHP
o PHP is a server-side scripting language.
o PHP is an interpreted language, i.e. there is no need for compilation.
o PHP is an object-oriented language.
o PHP is an open-source scripting language.
o PHP is simple and easy to learn language.

PHP Features

There are given many features of PHP.

o Performance: Script written in PHP executes much faster than those scripts
written in other languages such as JSP & ASP.
o Open-Source Software: PHP source code is free available on the web; you can
develop all the version of PHP according to your requirement without paying any
cost.

21
o Platform Independent: PHP are available for WINDOWS, MAC, LINUX & UNIX
operating system. A PHP application developed in one OS can be easily executed
in other OS also.

o Compatibility: PHP is compatible with almost all local servers used today like
Apache, IIS etc.
o Embedded: PHP code can be easily embedded within HTML tags and script.

PHP MySQL Connect

Since PHP 5.5, MySQL connect () extension is deprecated. Now it is recommended to


use one of the 2 alternatives.

o MySQL connect ()
o PDO__construct()

PHP MySQL connect ()

PHP MySQL connect () function is used to connect with MySQL database. It


returns resource if connection is established or null.

Syntax
1. resource mysqli_connect (server, username, password)

PHP MySQL close ()

PHP MySQL close () function is used to disconnect with MySQL database. It


returns true if connection is closed or false.

Syntax
1. bool MySQL close(resource $resource link)

PHP MySQL Connect Example

Example
1. <?php
2. $host = 'localhost:3306';
3. $user = '';
4. $pass = '';
5. $conn = MySQL connect ($host, $user, $pass);

22
6. if (! $conn)
7. {
8. die ('Could not connect: ' . MySQL error ());

9. }
10. echo 'Connected successfully';
11. mysqli_close($conn);
12. ?>

Output:

Connected successfully

PHP MySQL Create Database

Since PHP 4.3, mysql_create_db () function is deprecated. Now it is recommended to


use one of the 2 alternatives.

o MySQL query ()
o PDO: __query ()

PHP MySQL Create Database Example

Example
1. <?php
2. $host = 'localhost:3306';
3. $user = '';
4. $pass = '';
5. $conn = MySQL connect ($host, $user, $pass);
6. if (! $conn)
7. {
8. die ('Could not connect: ’. mysql_connect_error ());
9. }
10. echo 'Connected successfully<br/>';
11.
12. $SQL = 'CREATE Database mydb';
13. if (MySQL query ($Conn, SQL)) {
14. echo "Database mydb created successfully.";
15. } else {
16. echo "Sorry, database creation failed”. MySQL error($conn);
17. }

23
18. MySQL close($conn);
19. ?>

Output:

Connected successfully
Database my created successfully.

PHP MySQL Create Table

PHP MySQL query () function is used to create table. Since PHP 5.5, MySQL query
() function is deprecated. Now it is recommended to use one of the 2 alternatives.

o MySQL query ()
o PDO: __query ()

PHP MySQL Create Table Example

Example
1. <?php
2. $host = 'localhost:3306';
3. $user = '';
4. $pass = '';
5. $dbname = 'test';
6.
7. $conn = MySQL connect ($host, $user, $pass, dB name);
8. if (! $conn) {
9. die ('Could not connect:’. mysql_connect_error ());
10. }
11. echo 'Connected successfully<br/>';
12.
13. $SQL = "create table emp5(id INT AUTO_INCREMENT, name VARCHAR
(20) NOT NULL,
14. emp_salary INT NOT NULL, primary key (id))";
15. if (MySQL query ($conn, $SQL)) {
16. echo "Table emp5 created successfully";
17. } else {
18. echo "Could not create table: ". mysqli_error($conn);
19. }

24
20.
21. MySQL close($conn);
22. ?>

Output:

Connected successfully
Table emp5 created successfully

PHP MySQL Insert Record

PHP MySQL query () function is used to insert record in a table. Since PHP 5.5, MySQL
query () function is deprecated. Now it is recommended to use one of the 2 alternatives.

o MySQL query ()
o PDO: __query ()

PHP MySQL Insert Record Example

Example
1. <?php
2. $host = 'localhost:3306';
3. $user = '';
4. $pass = '';
5. $dbname = 'test';
6.
7. $conn = MySQL connect ($host, $user, $pass, dB name);
8. if (! $conn) {
9. die ('Could not connect: 'mysql_connect_error ());
10. }
11. echo 'Connected successfully<br/>';
12. $SQL = 'INSERT INTO emp4(name, salary) VALUES ("Sono", 9000)';
13. if (MySQL query ($conn, $SQL)) {
14. echo "Record inserted successfully";
15. } else {
16. echo "Could not insert record: ". MySQL error($conn);
17. }
18. MySQL close($conn);
19. ?>

Output:

25
Connected successfully
Record inserted successfully

26
3.CONCLUSION

In conclusion, this internship has been a very useful experience for me. I can safely
say that my understanding of the job environment has increased greatly. However,
I do think that there are some aspects of the job that I could have done better and
that I need to work on. I need to build more confidence in applying accounting
principles. I realized that I could have completed the work earlier than I did. Also,
the technical parts of the job were a bit flawed and I was asked multiple times to
correct it.

27

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy