Wednesday 28 May 2014

What Is Variables In PHP?

Variables define as "Variable($)=Storing a value"
-All variables in PHP are denoted with a leading dollar sign ($)

-A variable is called as just a storage area. If you want to put value so you can store this value in variables,so that you can use and manipulate them in your programmes. Things you'll want to store are numbers and text.

Here are the most important things to know about variables in PHP:-


1) The value of a variable is the value of its most recent assignment.

2) Variables are assigned with the = operator, with the variable on the left-hand side and the expression to be evaluated on the right.

3) Variables can, but do not need, to be declared before assignment.

4) Variables in PHP do not have intrinsic types - a variable does not know in advance whether it will be used to store a number or a string of characters.

5) Variables used before they are assigned have default values.

6) PHP does a good job of automatically converting types from one to another when necessary.

7)  PHP variables are Perl-like.

PHP has a total of eight data types which we use to construct our variables:-
























Posted by Amit Tiwari

Sunday 25 May 2014

PhP Introduction By-Amit Tiwari

Hello Everyone today, I am going to teach you what is PhP & What is the use of php?......If you want to know all about this so you are in the right place..
This tutorial helps you to start your own codes and also for helping to create a website.

PHP Stands for -"Hyper Text Preprocessor"
Created by Rasmus Lerdorf in 1995.




What Can PHP Do?


-PHP can generate dynamic page content.
-PHP can create, open, read, write, delete, and close files on the server.
-PHP can collect form data.
-PHP can send and receive cookies.
-PHP can add, delete, modify data in your database.
-PHP can restrict users to access some pages on your website.
-PHP can encrypt data.
With PHP you are not limited to output HTML. You can output images, PDF files, and even Flash movies. You can also output any text, such as XHTML and XML.

What is the use of Php ?


-PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
-PHP is compatible with almost all servers used today (Apache, IIS, etc.)
-PHP supports a wide range of databases.
-PHP is free. Download it from the official PHP resource: www.php.net
-PHP is easy to learn and runs efficiently on the server side.

PHP Installation-




























Note-Hello my dear friends if you like this post and need to know something else so comment below in comment box.

Posted By-Amit Tiwari





Saturday 17 May 2014

What Is Database?

Database is define as it is a separate application that stores a collection of data. Each database has one or more distinct APIs for creating, accessing, managing, searching and replicating the data it holds.

Other kinds of data stores can be used, such as files on the file system or large hash tables in memory but data fetching and writing would not be so fast and easy with those types of systems.

So nowadays, we use relational database management systems (RDBMS) to store and manage huge volume of data. This is called relational database because all the data is stored into different tables and relations are established using primary keys or other keys known as foreign keys.

A Relational DataBase Management System (RDBMS) is a software that:


1) Enables you to implement a database with tables, columns and indexes.

2) Guarantees the Referential Integrity between rows of various tables.

3) Updates the indexes automatically.

4) Interprets an SQL query and combines information from various tables.

What is MySQL?

MySQL is very important or we can say that it's a main database used in PHP (Hyper Text Preprocessor)
For exmaple if we are creating a new website so that our all data means user informations like (mobile number,name,email etc) are stored in database in tabular form.

Various definition of MySQL are-



-MySQL is a database system used on the web
-MySQL is a database system that runs on a server
-MySQL is ideal for both small and large applications
-MySQL is very fast, reliable, and easy to use
-MySQL supports standard SQL
-MySQL compiles on a number of platforms
-MySQL is free to download and use
-MySQL is developed, distributed, and supported by Oracle Corporation.

More information about MySQL-



MySQL is a fast, easy-to-use RDBMS being used for many small and big businesses. MySQL is developed, marketed, and supported by MySQL AB, which is a Swedish company. MySQL is becoming so popular because of many good reasons:

1) MySQL is released under an open-source license. So you have nothing to pay to use it.

2) MySQL is a very powerful program in its own right. It handles a large subset of the functionality of the most expensive and powerful database packages.

3) MySQL uses a standard form of the well-known SQL data language.

4) MySQL works on many operating systems and with many languages including PHP, PERL, C, C++, JAVA, etc.

5) MySQL works very quickly and works well even with large data sets.

6) MySQL is very friendly to PHP, the most appreciated language for web development.

7) MySQL supports large databases, up to 50 million rows or more in a table. The default file size limit for a table is 4GB, but you can increase this (if your operating system can handle it) to a theoretical limit of 8 million terabytes (TB).

8) MySQL is customizable. The open-source GPL license allows programmers to modify the MySQL software to fit their own specific environments.


Note-Hello every one if you like this post please comment and share and want to know anything else related to mysql i ll help you.Thanks

Posted by Amit Tiwari

Thursday 15 May 2014

JavaScript If....Else Statements

JavaSript support the conditional statement which is used to perform the operation in a logical way.
Here in this post i teach you how the if \,ifelse and else if statements works or we can say that perform.


1) If Statement-


if (condition)

{

Statement(1) to be executed if condition is true

}

Here JavaScript expression is evaluated. If the resulting value is true, given statement(s) are executed. If expression is false then no statement would be not executed. Most of the times you will use comparison operators while making decisions.

Example-

<script type="text/javascript">
<!--
var age = 20;
if( age > 18 ){
   document.write("<b>Hello My Name Is Amit!</b>");
}
//-->
</script>

Output is 

Hello My Name Is Amit!

2) If....Else Statement-


Instead of using two if statement we ll commonly used if....else statement.
For Example-

if(condition)
{

Statement  to be executed if condition is true

}

else
{

Statement  to be executed if condition is false
}


Now by the below example you know how to use if....else statement during the codes.

<script type="text/javascript">
<!--
var age = 25;
if( age > 20 ){
   document.write("<b>Amit completed engineering.</b>");
}else{
   document.write("<b>Does not completed</b>");
}
//-->
</script>

Output-

Amit completed engineering.

3) if...else if... statement-


This statement is used for several condition.

if (condition){
   Statement to be executed if condition 1 is true
}
else if (condition 2)
{
   Statement to be executed if condition 2 is true
}
else if (condition 3)
{
   Statement to be executed if condition 3 is true
}
else
{
   Statement to be executed if no condition is true
}

The above is the syntax of if...else if statement now i am going to show the another example for this so that you know it easily and try to practice more time you get clear about all the statements.

Example-

<script type="text/javascript">
<!--
var book = "maths";
if( book == "history" ){
   document.write("<b>History Book</b>");
}else if( book == "maths" ){
   document.write("<b>Maths Book</b>");
}else if( book == "economics" ){
   document.write("<b>Economics Book</b>");
}else{
  document.write("<b>Unknown Book</b>");
}
//-->

</script>

Output-
Maths Book

Posted by- Amit Tiwari

Javascript Operators

What is an operator?

Operator are simple deifen as an example given using expression 4 + 5 is equal to 9. Here 4 and 5 are called operands and + is called operator.

Types of operators:-

-Arithmetic Operators

-Comparision Operators

-Logical (or Relational) Operators

-Assignment Operators

-Conditional (or ternary) Operators

Now hava look i am explaing the operators one by one,

1) Arithmetic Operators-
Assume variable A holds 10 and variable B holds 20 then

Operator Description Example
+ Adds two operands A + B will give 30
- Subtracts second operand from the first A - B will give -10
* Multiply both operands A * B will give 200
/ Divide numerator by denumerator B / A will give 2
% Modulus Operator and remainder of after an integer division B % A will give 0
++ Increment operator, increases integer value by one A++ will give 11
-- Decrement operator, decreases integer value by one A-- will give 9


Note: Addition operator (+) works for Numeric as well as Strings. e.g. "a" + 10 will give "a10".

2) Comparision Operators-

Assume variable A holds 10 and variable B holds 20 then
Operator Description Example
== Checks if the value of two operands are equal or not, if yes then condition becomes true. (A == B) is not true.
!= Checks if the value of two operands are equal or not, if values are not equal then condition becomes true. (A != B) is true.
> Checks if the value of left operand is greater than the value of right operand, if yes then condition becomes true. (A > B) is not true.
< Checks if the value of left operand is less than the value of right operand, if yes then condition becomes true. (A < B) is true.
>= Checks if the value of left operand is greater than or equal to the value of right operand, if yes then condition becomes true. (A >= B) is not true.
<= Checks if the value of left operand is less than or equal to the value of right operand, if yes then condition becomes true. (A <= B) is true.

3)Logical (or Relational) Operators-


Operator Description Example
&& Called Logical AND operator. If both the operands are non zero then then condition becomes true. (A && B) is true.
|| Called Logical OR Operator. If any of the two operands are non zero then then condition becomes true. (A || B) is true.
! Called Logical NOT Operator. Use to reverses the logical state of its operand. If a condition is true then Logical NOT operator will make false. !(A && B) is false.

4) Assignment Operators-


Operator Description Example
= Simple assignment operator, Assigns values from right side operands to left side operand C = A + B will assigne value of A + B into C
+= Add AND assignment operator, It adds right operand to the left operand and assign the result to left operand C += A is equivalent to C = C + A
-= Subtract AND assignment operator, It subtracts right operand from the left operand and assign the result to left operand C -= A is equivalent to C = C - A
*= Multiply AND assignment operator, It multiplies right operand with the left operand and assign the result to left operand C *= A is equivalent to C = C * A
/= Divide AND assignment operator, It divides left operand with the right operand and assign the result to left operand C /= A is equivalent to C = C / A
%= Modulus AND assignment operator, It takes modulus using two operands and assign the result to left operand C %= A is equivalent to C = C % A

Note: Same logic applies to Bitwise operators so they will become like <<=, >>=, >>=, &=, |= and ^=.

5) Conditional (or ternary) Operators -

There is one more operator called conditional operator. This first evaluates an expression for a true or false value and then execute one of the two given statements depending upon the result of the evaluation. The conditioanl operator has this syntax:

Operator Description Example
? : Conditional Expression If Condition is true ? Then value X : Otherwise value Y

Posted by Amit Tiwari

Javascript Reserved Words.

Javascript Reserved Words:-

The following are reserved words in JavaScript. They cannot be used as JavaScript variables, functions, methods, loop labels, or any object names.

abstract
boolean
break
byte
case
catch
char
class
const
continue
debugger
default
delete
do
double
else
enum
export
extends
false
final
finally
float
for
function
goto
if
implements
import
in
instanceof
int
interface
long
native
new
null
package
private
protected
public
return
short
static
super
switch
synchronized
this
throw
throws
transient
true
try
typeof
var
void
volatile
while
with

These are the reserved words in javascript.

JavaScript Variables and DataTypes:By Amit Tiwari

JavaScript DataTypes:-


There is the most fundamental characteristics of a programming language is the collection ofdata types it supports. These are the type of values that can be represented and manipulated in a programming language.

JavaScript always allows you to work with 3 primitive data types:


1)Numbers eg. 123456, 123.50 etc.

2)Strings of text e.g. "This text is string" etc.

3)Boolean e.g. true or false.

JavaScript also defines two trivial data types:


1)Null
2)Undefined,

Each of which defines only a single value.

In addition to these primitive data types, JavaScript supports a composite data type known as object.

Note: Java does not make a distinction between integer values and floating-point values. All numbers in JavaScript are represented as floating-point values. JavaScript represents numbers using the 64-bit floating-point format defined by the IEEE 754 standard.

JavaScript Variables:


Variable can have short names (like x and y) or more descriptive names (age, sum, totalVolume).

-Variable names must begin with a letter.
-Variable names can also begin with $ and _ (but we will not use it)
-Variable names are case sensitive (y and Y are different variables)





















The Scope Of JavaScript Variable.


The scope of a variable is the region of your program in which it is defined. JavaScript variable will have only two scopes.

Global Variables: A global variable has global scope which means it is defined everywhere in your JavaScript code.

Local Variables: A local variable will be visible only within a function where it is defined. Function parameters are always local to that function.

Within the body of a function, a local variable takes precedence over a global variable with the same name. If you declare a local variable or function parameter with the same name as a global variable, you effectively hide the global variable. Following example explains it:


<script type="text/javascript">
<!--
var myVar = "global"; // Declare a global variable
function checkscope( ) {
   var myVar = "local";  // Declare a local variable
   document.write(myVar);
}
//-->
</script>

Output Is,




Note-In this above hope you get all the information about javascript variables and data types.If you have any doubt or if you want to ask something else ask freely just comment in comment box i ll response you asap.

Posted by Amit Tiwari

Javascript code placement in html file or document.

Hello everyone in this post i am going to teach you in how many ways you can put the javascript code in html file.


1) In head section or <head>........</head>
2)In body section or <body>.........</body>
3)In between head plus body.
4)Script that can be used as from the external source and this is inlcude in head section.


JavaScript in <head>...</head> section:


If you want to have a script run on some event, such as when a user clicks somewhere, then you will place that script in the head as follows:














JavaScript in <body>...</body> section:


If you need a script to run as the page loads so that the script generates content in the page, the script goes in the <body> portion of the document. In this case you would not have any function defined using JavaScript:















JavaScript in <body> and <head> sections:


You can put your JavaScript code in <head> and <body> section altogether as follows:


















JavaScript in External File :


As you begin to work more extensively with JavaScript, you will likely find that there are cases where you are reusing identical JavaScript code on multiple pages of a site.

You are not restricted to be maintaining identical code in multiple HTML files. The script tag provides a mechanism to allow you to store JavaScript in an external file and then include it into your HTML files.

Here is an example to show how you can include an external JavaScript file in your HTML code using script tag and its src attribute:














Posted by -Amit Tiwari

Javascript Enabling

Now a days all the popular browsers come with built-in support for JavaScript. Many times you may need to enable or disable this support manually.
In this post i will make you aware the steps of enabling and disabling JavaScript support in your browsers : Internet Explorer, Firefox, Chrome and Opera.

Javascript Enabling in chrome-

Launch Google Chrome from Start/Run with the parameter -enable-javascript. 


For example, in Vista: 
C:\Users\%username%\AppData\Local\Google\Chrome\Application\chrome.exe 

For example, in Windows XP: "C:\Documents and 
Settings\%username%\Local Settings\Application Data\Google\Chrome\chrome.exe" 
-enable-javascript 

or 

In my Windows XP it was here: "C:\Program Files\Google\Chrome\Application\chrome.exe" -enable-javascript 
NOTE: Javascript is supposed to be enabled in Chrome by default.
-enable-javascript

Javascript Enabling in firefox-

Steps to turn on or turn off JavaScript in your Firefox:

Follow Tools-> Options

from the menu
Select Content option from the dialog box

Select Enable JavaScript checkbox

Finally click OK and come out

To disable JavaScript support in your Firefox, you should not select Enable JavaScript checkbox.

Javascript Enabling in Internet Explorer-

Steps to turn on or turn off JavaScript in your Internet Explorer:

Follow Tools-> Internet Options from the menu

Select Security tab from the dialog box

Click the Custom Level button

Scroll down till you find Scripting option

Select Enable radio button under Active scripting

Finally click OK and come out

To disable JavaScript support in your Internet Explorer, you need to select Disable radio button under Active scripting.

Note-Please follow the above steps for your local browser if you want enabling.If you want any other help including this just mention in comment i ll provide the best solution for you.



Wednesday 14 May 2014

First Basic Program Using Javascript.

In this post you know about how we can write the simple program using javascript.


Program for printing "Hello Amit"


<html>
<body>
<script language="javascript" type="text/javascript">
<!--
   document.write("Hello Amit!")
//-->
</script>
</body>
</html>

We added an optional HTML comment that surrounds our Javascript code. This is to save our code from a browser that does not support Javascript. The comment ends with a "//-->". Here "//" signifies a comment in Javascript, so we add that to prevent a browser from reading the end of the HTML comment in as a piece of Javascript code.

Next, we call a function document.write which writes a string into our HTML document. This function can be used to write text, HTML, or both. So above code will display following result:

I am using dreamweaver so the code should be look like below image,



















Output is,








Just follow the above instruction an you are now able to write your code by own its easy just try once.if you are facing any doubt so ask freely i ll help you.Thanks

Javascript Syntax

The syntax of javascript is simple as like html.Only you have to start with the <script> tag and close with </script>tag.

For Example-

<script>

//(Javascript codes come in between this)

</script>


The script tag takes two important attributes:


language: This attribute specifies what scripting language you are using. Typically, its value will be javascript. Although recent versions of HTML (and XHTML, its successor) have phased out the use of this attribute.

Type: This attribute is what is now recommended to indicate the scripting language in use and its value should be set to "text/javascript".

So your JavaScript segment will look like:

<script language="javascript" type="text/javascript">
  JavaScript code
</script>


Note-By using the above code you can start your own code ...In my next post i ll teach you the first program with the help of javascript ...if you like then comment your views hoping best revert from your side. Thanks
:-)

What Is Javascript?

The starting name of javascript is  LiveScript, but Netscape changed the name, possibly because of the excitement being generated by Java.to JavaScript. JavaScript made its first appearance in Netscape 2.0 in 1995 with a name LiveScript.

Javascript is most useful programming language it start with <script> tag and end with </script>tag.Any javascript code should be written in between script tag.

JavaScript is:

-JavaScript is a lightweight, interpreted programming language.
-Designed for creating network-centric applications.
-Complementary to and integrated with Java.
-Complementary to and integrated with HTML.
-Open and cross-platform.

Advantages Of Javascript:




Limitations:
















Javascript Tools:




Html Simple Registration Form.

HTML Forms are required when you want to collect some data from the site visitor. For example registration information: name, email address, credit card, etc.
A form will take input from the site visitor and then will post your back-end application such as CGI, ASP Script or PHP script etc. Then your back-end application will do required processing on that data in whatever way you like.

Includes:-

-Text Fields
-Check Boxes
-Radio Buttons
-Submit Buttons
-Select lists
-Text Area
-Label Elements

Syntax of form in html is,

<form>

//(Between this you can code the html part like printing the first name ,last name ,email, or mobile number with validations..Each field includes the input types..I ll show you one example in below image)

</form>

Note: If you want to change the layout of form so you can prefer my Css style post..so it easy to you for changing the layout of form with different color like background, font-size etc.

Simple html form code without any style.










Output should be print like below image,

















In my next post i am gonna post the html form with validations..if you like this comment please.


Tuesday 13 May 2014

Html Links.

Html links (Hyper link) is define as if you want to see your code url in different page or you want to jump the link in different document.

Example-

If i want to jump my facebook url in different tab but i want to put the attribute Amit Profile....So for this the code is,







This code is use for opening your attribute in same page, if you want to open your profile in a new tab so you have to use target="_blank".For example







Output of this code is,




Hoping for the best revert from your side ...if you like the way of mine so comment please.In my next post i am going to post about the Html form.


Html Colors

Html color's can be added by using the sytle attribute.You can specify the color by your own choise in below images you get the codes of color.These codes you have to put in your style attribute for displaying the page.


1st Table-



2nd Table-




3rd Table-



There is also a good solution if you are using hexadecimal, RGB, or HSL notation, you have a choice of over 16 million different colors. For example, you can start with 000000 and increment by one value all the way up to FFFFFF. Each different value represents a slightly different color.

Hope you like my all the post.I am here to teach you all the basics of all the language coming in my next posts.


Css (Cascading Style Sheets)

Css  (Cascading Style Sheets) is used to style the element visible in front end.

Cascading style sheet can be added in three ways-

1) Inline - Using the style in the attribute in HTML elements.











2) Internal ( Embedded ) - In internal using the <style> element in the <head> section.


















3) External - This is define as using the style from the external source.







Html Comment.

Html comments is used to hide the text in front end or in a browser.

You can add comments to your HTML source by using the following syntax:
<!-- Write your comments here -->

Below image easily explain how to put comment in code.





Html Elements

Html elements introduce in the starting tag and close tag or we can say that, start tag is often called the opening tag  &  end tag is often called the closing tag.

Html Editors.

Hyper Text Markup Language  can be edited by using different professional Html editors like-

1) Notepad
2) Adobe Dreamweaver
3) Notepad++
4) CoffeeCup HTML Editor

There are so many editors available online but the most commonly used editors are Notepad & Adobe Dreamweaver.

Follow Below four steps and start code within a minute.

Step 1: Start Notepad
To start Notepad go to:
Start
    All Programs
        Accessories
            Notepad

Step 2: Edit Your HTML with Notepad.

Type your first code in Notepad like the below image.






Step 3: Save Your HTML document.
Press Save as  in Notepad's file menu.When you save an HTML file, you can use either the .htm or the .html file extension. There is no difference, it is up to you whatever you want save in these both.

Step 4: Run the HTML in Your Browser.
Start your web browser and open your html file from the File, Open menu, or just browse the folder and double-click your HTML file.

The result should look like below image in your browser.


Basic Structure of Html.

In this post I am going to teach you how the html structure works...

Step:1)
HTML document begins and ends with HTML tag i.e. <HTML> </HTML> .Here the starting <html> indicates that the browser is html document &  </HTML> tells the browser that HTML document is completed.

Step:2) Header Tag i.e. <HEAD></HEAD>-Header Tag does not contain any text, it only contains the Title Tag in it.-The <head> element must include a title for the document, and can include scripts, styles, meta  information, and more.

Step:3)Body tag i.e.<BODY></BODY>
This is the main part of HTML document. The content which is to be displayed on screen as webpage should be written here. Body Tag contains the text as well as various tags but only the text will be displayed on Webpage.Example-









Output display in your browser like this.




Monday 12 May 2014

Tags In Html.

Tags contain elements which provide instructions for how information will be processed or displayed. There are both starter tags <TAG> and end tags </TAG>
-In below image you can be able to know the important tags use in html.

What is Html?

Html stands for "Hyper Text Markup Language", Use for displaying the page in web browser or we can say that using html you can create your own website easily.
For implementing the website you need to know about tags,attributes etc.In my next post i am going to discuss about tags.Tags are the main parameter of html it helps you to create the website in a proper way.

Basic structure of html-
<html>
<head>

//between this codes we put meta tags like keyword and description.
</head>
<body>
// body part includes whatever you are going o show in front end all codes coded in this part between <body>......</body>

</body>

</html>



Sunday 11 May 2014

Who we are.

Makersofweb is a Web-development and Android application development team.We provide best quality work as per client satisfaction and timely response.We are here for creating the new idea and implement it live.Our main work is developing & design any sites comes under php,wordpress,drupal,joomla etc.Also we have a great Android developer they have great skills on that.

Our skills are-

1)Php
2)Wordpress
3)Joomla
4)Drupal
5)C/c++
6)Yii
7)Ecommerce
8)Android
9)ASP C# Programming
10)jQuery / Prototype
11)Html
12)Css
13)Logo Design

"Your Challenge !! Our Passion"