Professional Documents
Culture Documents
A
Industrial Training Report
Submitted in partial fulfillment of the requirement for the award of Degree of
B.Com(Computer Application)
BARKATULLAH UNIVERSITY
BHOPAL (M.P)
Submitted By
Shubham Chouskey
14150901
Certificate
Date:16/03/2016
Place:Bhopal
This is to certify that Subham Chouskey has completed the Industrial Training in
our Organization Cybercops Info Solution, Bhopal (M.P.) during the academic
year 2014-2015. He/she was trained in the field of X-HTML, PHP & MY SQL.
His overall performance during the period was good. We wish him great success in
future.
(IT Manager)
Cyber cops Info Solution, Bhopal
DECLARATION
Date:Signature of student
Place:-Bhopal
Name:-
ANAND DANGI
Class:B.com 6th Sem(CA)
Address:-Pooja Colony
Karond (Bhopal)
Contact No.:9644588232
ACKNOWLEDGEMENT
Before, we get into the depth of the things we would like to add heartfelt words for the
people who at various stages of the project development helped us by their valuable
guidance.
We take this opportunity to express our deep sense of gratitude and indebtedness to
Ms Rajinder kaur, Computer Science Department of our college, for his continuous
guidance, support and encouragement throughout the course of this entire project.
This diction is nothing to acknowledge the constant inspiration encouragement and
guided by Mr Ranjeet Kumar, the project guide, [M K Ponda College of Business
and Management, Bhopal], Bhopal for empowering us to complete our project. It was
only due to their sincere effort that we were able to end up this project.
Also a special thanks to all other staff members and colleagues for their help and
suggestion, which they have always towards us whenever we were in trouble.
Last but not the least we would like to express our gratitude to our parents without
whose help and blessings we cant take a single step in the right direction.
Thanks!
INDEX
S.
no.
1
Content
A glance of Internship
Detail
Internship Schedule
Area of internship
Internship Activities
An assessment of the
Internship
Conclusion
References
Page
: Shubham chouksey
: chandpur Gandhi nagar (Bhopal)
: chandpur Gandhi nagar (Bhopal)
: 7898224959
: schouksey726@gmail.com
: cybercops private limited
: C-25, First Floor, indrapuri, Bhopal
(M.P.)
: 45 days
INTERNSHIP SCHEDULE
S.NO.
`FIRST WEEK
CONTENT
Introduction to HTML
FEFTH WEEK
Introduction to PHP
PHP Variables
Decision making
Echo
SIXTH WEEK
Cookies, Session
GET & POST Method
Introduction to My SQL
My SQL Table, Insert Query
SEVENTH
WEEK
Delete Query
COMPANY PROFILE
Our Vision
To be a leading Information Technology Solutions and Training provider in the region
by deploying emerging and advanced technologies through our most valuable assets our people, with continuous commitment to quality and total customer satisfaction,
while contributing towards the organizational as well as societal goals and enhancing
shareholder value.
About Cybercops
Cybercops Info Solution is a team of dedicated professionals who always strive to
make sure that students and professionals coming for the training get the best of the
facilities while they are training in Cybercops Info Solution.
Network Consultancy projects help the students working in live projects and helps us
in getting our students placed in different companies.
Cybercops Info Solution offers a wide range of Networking Courses and Trainings
from top Computer Programming and Networking companies such as Oracle, Cisco
Systems, Microsoft, Linux, CheckPoint, etc to help students and Professionals to
develop a deep understanding into the workings of software development and
Internetworks and also helping them successfully passing Networking industry's
leading Certifications like OCJP,PHP Certification, .net Certification, CCIE, CCNP,
CCNA,CSPFA, CCSP, MCITP, MCSE, RHCE, RHCSS,CEH,CISA,CISSP and many
more.
At Cybercops Info Solution the students are very well guided and recommended for the
best program for their successful career growth.
Area of internship
WEB SITE
A Web site is a related collection of World Wide Web (WWW) files that
includes a beginning file called a home page. A company or an
individual tells you how to get to their Web site by giving you the
address of their home page. From the home page, you can get to all
the other pages on their site. For example, the Web site for IBM has
the home page address of http://www.ibm.com. (The home page
address actually includes a specific file name like index.html but, as
in IBM's case, when a standard default name is set up, users don't
have to enter the file name.) IBM's home page address leads to
thousands of pages. (But a Web site can also be just a few pages.)
2.Dynamic website
INTRODUCTION OF HTML
Building Static Sites through HTML
HTML is a computer language devised to allow website creation.
These websites can then be viewed by anyone else connected to the
Internet. It is relatively easy to learn; and quite powerful in what it
allows you to create. It is constantly undergoing revision and
evolution to meet the demands and requirements of the growing
Internet audience under the direction of the W3C, the organization
charged with designing and maintaining the language.
The definition of HTML is Hyper Text Markup Language.
Hypertext is the method by which you move around on the web by
clicking on special text called hyperlinks which bring you to the next
page. The fact that it is hyper just means it is not linear i.e. you
can go to any place on the Internet whenever you want by clicking
on links there is no set order to do things in.
Markup is what HTML tags do to the text inside them.
They mark it as a certain type of text (italicized text, for example).
HTML is a Language, as it has code-words and syntax like
any other language.
HTML is a language for describing web pages.
INTRODUCTION OF PHP
PHP - What is it?
Taken directly from PHP's home, PHP.net, "PHP is an HTML-embedded
scripting language. Much of its syntax is borrowed from C, Java and
Perl with a couple of unique PHP-specific features thrown in. The goal
of the language is to allow web developers to write dynamically
generated pages quickly." This is generally a good definition of PHP.
However, it does contain a lot of terms you may not be used to.
Another way to think of PHP is a powerful, behind the scenes
scripting language that your visitors won't see!
PHP files can contain text, HTML, CSS, JavaScript, and PHP code
PHP code are executed on the server, and the result is returned to the
browser as plain HTML
Why PHP?
PHP is compatible with almost all servers used today (Apache, IIS, etc.)
PHP Syntax
Before we talk about PHP's syntax, let us first define what syntax is
referring to.
Syntax - The rules that must be followed to write properly structured
code.
PHP's syntax and semantics are similar to most
other programming languages (C, Java, Perl) with the addition that all
PHP code is contained with a tag, of sorts. All PHP code must be
contained within the following...
INTRODUTION OF MY SQL
My SQL is currently the most popular open source
database server in existence. On top of that, it is very commonly
used in conjunction with PHP scripts to create powerful and dynamic
server-side applications.
What is a database?
My SQL connect
Before you can do anything with My SQL in PHP you
must first establish a connection to your web host's My SQL
database. This is done with the My SQL connect function.
mysql_connect()
Syntax
mysql_connect("server", "user", "password")
INTERNSHIP ACTIVITIES
HTML
HTML markup tags are usually called HTML tags
-HTML tags are keywords surrounded by angle brackets like
<html>
-HTML tags normally come in pairs like <b> and </b>
-The first tag in a pair is the start tag,the second tag is the end tag
-Start and end tags are also called opening tags and closing tags
Getting Started with HTML
What you need?
HTML is written simply in a plain text editor like
Notepad. Advanced developers also use softwares like Frontpage,
Expression Web & Dreamweaver. But we will be using advanced text
editor Notepad++. How to Save HTML Web Page. HTM or HTML
Extension ?When you save an HTML file, you can use either the
.htm or the .html extension. We use .htm in our examples.
With new software it is perfectly safe to use .html
Understand the HTML Web Page Structure.
<html>
<body>Hello,
How are you.
</body>
</html>
Example Explained
The text between <html> and </html> describes the web page
The text between <body> and </body> is the visible page
content
This is the common structure of all the HTML Web Pages.
Always you have to Start the HTML Page with opening HTML and
Body Tags <html> and <body> and after putting all the content you
need in the Web Page, You need to close the opened tags by
</body> and </html>, in the order they were opened.
HTML Elements.
An HTML element is everything from the start tag to the end tag.
Illustration
<p>This is Some Content.</p>
Illustration Explained
Here everything for start paragraph tag to end tag is the HTML
Element. The content between the tags This is Some Content. is
known as the element content.
HTML Element Syntax
An HTML element starts with a start tag / opening tag.
An HTML element ends with an end tag / closing tag.
The element content is everything between the start and the
end tag.
Info
Illustration Output
Cybercops Info Solution Home Page.
Some other Useful Tags.
We will now discuss some other useful tags like HTML Rules, HTML
Comments, Line Breaks etc.
Drawing HTML Rules
<HR> (Horizontal Rule) is a stand alone tag that generates a
horizontal line. There is no corresponding HTML command for a
vertical line.
Illustration
<html>
<body>
<h1>My First Heading.</h1>
<hr>
<h2>My Second Heading.</h2>
</body>
</html>
Illustration Output.
All combinations of text placed within the comment tags will be ignored by the web
browser, this includes any HTML tags, scripting language(s), etc. Comment tags <!-and --> are used to insert comments in HTML.
Example
<!-- Write your comments here -->
Line Breaks
To break the line and move to the next line. Use the <br> tag.
Marquee
An HTML marquee is a scrolling piece of text displayed either horizontally across or
vertically down your webpage depending on the settings. This is created by using
HTML <marquees> tag.
<!DOCTYPE html>
<html>
<head>
<title>HTML marquee Tag</title>
</head>
<body>
<marquee>This is basic example of marquee</marquee>
<marquee direction="up">The direction of text will be from bottom
to top.</marquee>
</body>
</html>
HTML Styling Tags
You may want to change the way the generated
HTML output looks. The best way to do that is with a Cascading Style
Sheet (CSS), which modern browsers support. Font family, type size,
colors, and other styles can be controlled with CSS for each kind of
element.
Connect CSS to a Webpage
Insert the link of CSS Files into the HTML file. The link is to be put in
the <HEAD> element.
Illustration
<link rel="stylesheet" href="stylesheet.css" type="text/css">
Illustration Explained
The above tag, links the CSS file named
stylesheet.css to the current Web page.
Styling HTML with CSS
CSS stands for Cascading Style Sheets
Styling can be added to HTML elements in 3 ways:
Inline - using a style attribute in HTML elements
Internal - using a <style> element in the HTML <head>
section
External - using one or more external CSS files
CSS Syntax
element { property:value; property:value }
Inline Styling (Inline CSS)
Inline styling is useful for applying a unique style to a single HTML
element:
Inline styling uses the style attribute.
This inline styling changes the text color of a single heading:
Example
<h1 style="color:blue">This is a Blue Heading</h1>
Internal Styling (Internal CSS)
An internal style sheet can be used to define a common style for all HTML elements
on a page.
Internal styling is defined in the <head> section of an HTML page, using
a <style> element:
<!DOCTYPE html>
<html>
<head>
<style>
body {background-color:lightgrey}
h1 {color:blue}
p {color:green}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
External Styling (External CSS)
External style sheet are ideal when the style is applied to many
pages.
With external style sheets, you can change the look of an entire web
site by changing one file.
External styles are defined in an external CSS file, and then linked
to in the <head> section of an HTML page:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Text Formatting
HTML also defines special elements, for defining text with
a special meaning.
HTML uses elements like <b> and <i> for formatting output,
like bold or italic text.
Formatting elements were designed to display special types of text:
Bold text
Important text
Italic text
Emphasized text
Marked text
Small text
Deleted text
Inserted text
Subscripts
Superscripts
HTML Links
HTML links are useful to interconnected the HTML pages.Links
are found in nearly all web pages. Links allow users to click their way
from page to page.
HTML links are hyperlinks.
Syntax
<a href="url">link text</a>
Example
<a href="http://cybercopsinfosolutions">Visit our HTML tutorial</a>
HTML Table Tags
The <table> tag defines an HTML table. A simple
HTML table consists of the table element and one or more tr, th, and
td elements. The tr element defines a table row, the th element
defines a table header, and the td element defines a table cell.
Example
<!DOCTYPE html>
<html>
<body>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
<td>80</td>
</tr>
</table>
</body>
</html>
Illustration Output.
another list tag is detected or until the end of the list is reached. It is
used to itemize elements of unordered and ordered lists.
Unordered List
An unordered list is a list of items. The list items are marked with
bullets (typically small black circles).
An unordered list starts with the <ul> tag. Each list item starts with
the <li> tag.
Illustration
<html>
<body>
<ul><li>January</li>
<li>February</li>
</ul>
</body>
</html>
Illustration Output
<html>
<body>
<ol><li>January</li>
<li>February</li>
</ol>
</body>
</html>
Illustration Output
<form action="action_page.php">
First name:<br>
<input type="text" name="firstname" value="Mickey">
<br>
Last name:<br>
<input type="text" name="lastname" value="Mouse">
<br><br>
<input type="submit" value="Submit">
</form>
<p>If you click the "Submit" button, the form-data will be sent to a
page called "action_page.php".</p>
</body>
</html>
Illustration Output
Textfield
Text fields are used when you want the user to type letters, numbers,
etc. in a form.
Raadio Button
Radio Buttons are used when you want the user to select one of a
limited number of choices.
Checkbox
Checkboxes are used when you want the user to select one or more
options of a limited number of choices.
Block-level Elements
A block-level element always starts on a new line and takes up the
full width available (stretches out to the left and right as far as it
can).
Examples of block-level elements:
<div>
<h1> - <h6>
<p>
<form>
Inline Elements
An inline element does not start on a new line and only takes up as
much width as necessary.
This is an inline <span> element inside a paragraph.
What are <div> Tags
The <div> tag in XHTML is a tag that defines logical
divisions within the content of a page. What this means is that a
<div> tag defines sections of a Web page to make it easier to
manage, style, and manipulate.
Illustration Output
</html>Display
Hello World!
White Space
As with HTML, whitespace is ignored between PHP statements. This
means it is OK to have one line of PHP code, then 20 lines of blank
space before the next line of PHP code. You can also press tab to
indent your code .
Simple If Statement
Ifelse Statement
Nested If statement
Ifelseif Ladder
SwitchCase Statement
PHP Echo
As you saw in the previous lesson, the PHP function echo is a means
of outputting text to the web browser. Throughout your PHP career
you will be using the echo function more than any other. So let's give
it a solid perusal!
Outputting a String
To output a string, like we have done in previous lessons, use the PHP
echo function. You can place either a string variable or you can use
quotes, like we do below, to create a string that the echo function will
output.
PHP Code
<?php
$my String = "Hello!";
echo $my String;
echo "<h5>I love using PHP!</h5>";
?>
Display
Hello!
I love using PHP!
Careful When Echoing Quotes!
It is pretty cool that you can output HTML with PHP. However, you
must be careful when using HTML code or any other string that
includes quotes! The echo function uses quotes to define the
beginning and end of the string, so you must use one of the following
tactics if your string contains quotations:
Don't use quotes inside your string
Escape your quotes that are within the string with a slash. To escape
a quote just place a slash directly before the quotation mark, i.e. \"
Use single quotes (apostrophes) for quotes inside your string.
See our example below for the right and wrong use of the echo
function:
PHP Code
<?php
// This won't work because of the quotes around specialH5!
echo "<h5 class="specialH5">I love using PHP!</h5>";
// OK because we escaped the quotes!
Echo "<h5 class=\"specialH5\">I love using PHP!</h5>";
// OK because we used an apostrophe '
Echo "<h5 class='specialH5'>I love using PHP!</h5>";
?>
PHP Strings
In the last lesson, PHP Echo, we used strings a bit, but didn't talk
about them in depth. Throughout your PHP career you will be using
strings a great deal, so it is important to have a basic understanding
of PHP strings.
Illustration
<?php
$variable = "name";
$literally = 'My $variable will not print!\\n';
print($literally);
print "<br />";
print($literally);
?>
Illustration Output
<?php
if( $_GET["name"]|| $_GET["age"])
{
echo"Welcome ". $_GET['name']."<br />";
echo"You are ". $_GET['age']." years old.";
exit();
}
?>
<html>
<body>
<form action="<?php$_PHP_SELF?>" method="GET">
Name: <inputtype="text"name="name"/>
Age: <inputtype="text"name="age"/>
<inputtype="submit"/>
</form>
</body>
</html>
Output
Name: Age:
POST Method
As explained above, before sending information to
server, it converts clients information into a query string in URL.
<?php
if( $_POST["name"]|| $_POST["age"])
{
if(preg_match("/[^A-Za-z'-]/",$_POST['name']))
{
die("invalid name and name should be alpha");
}
echo"Welcome ". $_POST['name']."<br/>";
echo"You are ". $_POST['age']." years old.";
exit();
}
?>
<html>
<body>
<form action="<?php$_PHP_SELF?>" method="POST">
Name: <inputtype="text"name="name"/>
Age: <inputtype="text"name="age"/>
<inputtype="submit"/>
</form>
</body>
</html>
Output
Name: Age:
MYSQL
MySQL Delete
Maintenance is a very common task that is
necessary for keeping MySQL tables current. From time to time, you
may even need to delete items from your database. Some potential
reasons for deleting a record from MySQL include when: someone
deletes a post from a forum, an employee leaves a company, or
you're trying to destroy your records before the federalies come!
MySQL delete example
1.
FIRST PAGE
SECOND PAGE
THIRD PAGE
FOURTH PAGE
FIFTH PAGE
SIXTH PAGE
CONCLUSION
Bibliography
1)
2)
.C Xaviers HTML
,Tata McGraw-Hill
Education, 01-Apr2000
2)Black book ,
publication,
year,place
3)
References
1. 1.
2. www.w3schools.com/html/
3. https://en.wikipedia.org/wiki/PHP
4.http://websource.net/html_codes_chart.htm#italic
5.http://www.quackit.com/html/codes/
6.http://www.2createawebsites.com/create-awebsite-html.php