The PHP training course offered by us is simply the best. The study materials and course modules are designed in a less complicated manner which can easily be understood by the students.
6. "Hello World" Script in
PHP
<HTML>
<HEAD>
<TITLE> First program <TITLE>
<BODY>
<BODY>
</HTML>
HELLO WORLD!
<?php
echo "Hello, World!";
</HEAD>
</BODY
?>
7. VARIABLES IN PHP
All variables are
declared with leading
dollar($) sign.
$vary=34;
$many=5.34;
Variable can, but do not
need to be declared
before assignment.
PHP does a good job of
automatically converting
types from one to
another when
necessary.
$sum=34;
$sum=“hiii”;
9. DATE FUNCTION IN PHP
• date(format)
EXAMPLE:DATE(
);
• Print date with time
EXAMPLE:DATE( “d-m-y h:m:s” );
10. Time zones
• To set the time zone
date_default_timezone_set();
• To get the time zone
date_default_timezone_get();
11. ARRAYS IN PHP
• Numeric array
An array with a numeric index. Values are stored and accessed in
linear fashion
• Associative array
An array with strings as index. This stores element values in
association with key values rather than in a strict linear index order.
14. HEADER,INCLUDE AND
REQUIRE
• HEADER
IT IS USED TO REDIRECT TO ANOTHER PAGE.
• INCLUDE
IT IS USED TO INCLUDE THE ANOTHER PAGE INTO THE
CURRENT PAGE.
• REQUIRE
SAME AS INCLUDE.
17. MYSQL BASIC QUERIES
• TO CREATE DATABASE
CREATE DATABASE DB_NAME;
• TO CREATE TABLE
CREATE TABLE TB_NAME(COL_NM1
DATATYPE,COL_NM2 DATATYPE……);
• TO LIST THE DATA
SELECT * FROM TABLE_NAME;
18. • TO INSERT VALUES IN TABLE
INSERT INTO TABLE_NAME
VALUES(VALUE1,VALUE2……..VALUEN);
19. QUERIES TO BE USED
WITH MYSQL
• MYSQLI_CONNECT();
• The mysqli_connect() function opens a
MySQL connection.
• This function returns the connection on
success, or FALSE on failure.
22. ORDER BY RAND()
FUNCTION IN MYSQL
• MySQL has a ORDER BY RAND()
function that can be used to randomize the
set of values.
• SYNTAX
• SELECT * FROM TABLE_NAME ORDER
BY RAND();
23. WORDPRESS
WordPress is a free and open source blogging tool and a contentmanagement system based on PHP and MySQL.
WordPress is an OPEN SOURCE project, which means there are
hundreds of people all over the world working on it.
WordPress started as just a blogging system, but has evolved to
be used as full content management system and so much more
through the thousands of plugins and widgets and themes.
WordPress is limited only by your imagination.