Wednesday 12 October 2011

PHP Tutorials:

Learn PHP (variables) lesson


What is the point of programming without variables? Her singing as quietly. So let's dive.


Variables take something that is ... well ... variable. The opposite of static (no change).


All variables in PHP begin dollars. How to count and $ $ numberOfClicks. You can use this:


<?php


$ NumberOfClicks = 0;


echo "The number of clicks." NumberOfClicks $. " <BR> ";


$ $ = NumberOfClicks numberOfClicks + 2;


echo "After math, the number of clicks." NumberOfClicks $. " <BR> ";


&gt;


The semicolon at the end of each line, I remember! Burns me every day.


So you set a variable as you would expect with the equal sign. How numberOfClicks = $ 0


Here is another concept that I added this is called string concatenation. Slapping stuff together for printing. PHP uses. to hold the wires together. I conclude by quoting a string to tell the PHP code is coming, do. operator, the variable, then the second point, and the string in quotes. Do not + to hit the wires together. IT does not work. This is a common problem when you switch to another language PHP. Strange things happen when you forget and use + instead of a point. You will notice that I put " <BR> "At the end: this is so when the browser test, we can read the output Remember. PHP spits out the browser to print the HTML is fine, and the browser will recognize it.


Now, I could have $ numberOfClicks + = 2, however, what I did. + Case = port number to a variable. Even -= faith.


Unlike some other languages, there is no "type" of variables in PHP. A variable can be a whole number of one second, a number with decimal places and the next minute a string (lots of letters and numbers) of the next. It makes me crazy, but it also makes PHP easy: no conversion between types as in Java and C.


Here's another example:


<?php


StuffToPrint $ = "Fred";


echo $ stuffToPrint. " <BR> ";


$ StuffToPrint .= "and Ethel";


echo $ stuffToPrint;


&gt;


written by:


Fred


Fred and Ethel


A variable can be a string that can be seen here, and we can add to the chain by a .=


Let me know if something does not make sense!

PHP Tutorial  (GET and POST Variables)
Introduction - PHP passing variables between pages

In the tutorial passing variables to php, there are only four arguments are based on How to get to the PHP variables from page to page using the


POST


GET


$ _SESSION


Arrays


Passing variables between scripts


From sending data to another page


Here's a simple example of how to move the PHP variable from one page to the POST method, and how to use the POST array Super global experience to make coding more efficient and less time. First you need a HTML form data collection pass. Here we collect the names of five at a time. Let's see how it works. What follows is an explanation of how an HTML form, for those of you who are new and learning PHP and HTML.


A form used to collect data from people. What data are collected using a form can vary greatly depending on the site of a person is running. mrarrowhead.com have a form at the bottom of each page to collect user feedback and comments on the site. When the button is used, the values ​​that the author has signed name = "" text box as attributes are the names of variables that lives in the server as this is known as super global arrays. For it is enough to know that these variables are global, and are usually sent to the script you have identified your form to use form tag action = "".

PHP Tutorial for Beginners

This article is about a scripting language. For other uses, see PHP 

PHP

PHP: Hypertext Preprocessor

Paradigm (s) imperative, object oriented, procedural, reflecting

Appeared in 1995, 16 years ago [1]

Designed by Rasmus Lerdorf

The PHP developers group

Stable version 5.3.8 (August 23, 2011, 45 days ago)

Example 5.4.0beta1 release (September 15, 2011, 22 days ago)

Dynamic typing discipline, poor

Larger implementations Zend Engine, the Phalange, Quercus, Project Zero, HipHop

Influenced by C, Perl, Java, C + +, Tcl [1]

Influenced RadPHP (formerly PHP4Delphi)

C language implementation

Multi-OS platform

PHP License

Custom extensions. Php,. Phtml. Php4. Php3. Php5. Phps

Php.net Website

Programming PHP 

PHP is a general-purpose server-side scripting language originally designed for web development for producing dynamic Web pages. To this end, the PHP code embedded in the HTML document and interprets the PHP web server with a processor module, which creates a document of a web page. It has evolved to include a line leadership and interface can be used in standalone graphical applications. [2], PHP can be used with most web servers and stand-alone interpreter, almost every operating system and platform free of charge. [3], a competitor of Microsoft Active Server Pages (ASP) server-side script engine [4] and similar languages, PHP is installed on over 20 million websites and 1 million web servers. [5]

PHP was originally created by Rasmus Lerdorf in 1995. The main implementation of PHP is now produced by the PHP Group and serves as a de facto standard for PHP as there is no formal specification. [6] PHP is free software distributed under the PHP license that is incompatible with the GNU General Public License (GPL) because of restrictions on the use of the term PHP. [7]

Although PHP originally stood in the "Personal Home Page", is now said to stand for "PHP: Hypertext Preprocessor", a recursive acronym


PHP Tutorial for Beginners - #2 - Basic Arrays, Variables, Echo, HTML

Tuesday 11 October 2011

HTML TABLE EXAMLE


Introduction to tables in HTML


The HTML table model allows authors to arrange data - text, preformatted text, images, links, forms, form fields, other tables, etc. - into rows and columns of cells.

Each table can be associated caption  that provides a brief description of the purpose of the table. A longer description may also be provided (via the summary attribute) for people using Braille or user interface.

Table rows can be assembled in a section head, mouth and body (via the THEAD, TBODY and TFOOT, respectively). Row groups convey additional structural information and can be done by user agents in order to emphasize this structure. User agents may use the division head / body / foot to support scrolling of body panels are independent of the header and footer sections. When long tables are printed, the information the head and foot should be repeated on every page that contains table data.

Authors may also group columns to provide additional structural information that can be used in user agents. In addition, the authors may inform the property at the beginning of the columns of the table definition (via the COLGROUP and COL elements) in a way that allows users to do the representatives of the table little by little rather than waiting until all the table data to arrive before rendering.

Table cells may be a "header" or "information". Cells may span multiple rows and columns. HTML 4 table model allows authors to subscribe for each cell, so that non-visual browsers to communicate more easily with the header information of the cells for the user. Not only do these mechanisms are of great help for visually impaired users, wireless browser to allow multi-modal limited display capabilities  to handle tables.

The tables should be used only as a means to layout document content as this may cause problems in making a non-visual media. In addition, when using graphics, tables may force users to scroll horizontally to view a table designed for a system with a larger screen. To minimize these problems, authors should use style sheets for layout instead of tables.



HTML Tables and the Border attribute:

If you do not specify an attribute of the border, the picture will be displayed without borders. Sometimes this can be useful, but mostly, we want the boundaries of the show.

You can see on the table, set the attribute on board:

<table border="1">

<tr>

<td>row 1, cell 1</td>

<td>row 1, cell 2</td>

</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>

HTM COLOR AND CODES




AliceBlue #F0F8FFShadesMix
AntiqueWhite #FAEBD7ShadesMix
Aqua #00FFFFShadesMix
Aquamarine #7FFFD4ShadesMix
Azure #F0FFFFShadesMix
Beige #F5F5DCShadesMix
Bisque #FFE4C4ShadesMix
Black #000000ShadesMix
BlanchedAlmond #FFEBCDShadesMix
Blue #0000FFShadesMix
BlueViolet #8A2BE2ShadesMix
Brown #A52A2AShadesMix
BurlyWood #DEB887ShadesMix
CadetBlue #5F9EA0ShadesMix
Chartreuse #7FFF00ShadesMix
Chocolate #D2691EShadesMix
Coral #FF7F50ShadesMix
CornflowerBlue #6495EDShadesMix
Cornsilk #FFF8DCShadesMix
Crimson #DC143CShadesMix
Cyan #00FFFFShadesMix
DarkBlue #00008BShadesMix
DarkCyan #008B8BShadesMix
DarkGoldenRod #B8860BShadesMix
DarkGray #A9A9A9ShadesMix
DarkGrey #A9A9A9ShadesMix
DarkGreen #006400ShadesMix
DarkKhaki #BDB76BShadesMix
DarkMagenta #8B008BShadesMix
DarkOliveGreen #556B2FShadesMix
Darkorange #FF8C00ShadesMix
DarkOrchid #9932CCShadesMix
DarkRed #8B0000ShadesMix
DarkSalmon #E9967AShadesMix
DarkSeaGreen #8FBC8FShadesMix
DarkSlateBlue #483D8BShadesMix
DarkSlateGray #2F4F4FShadesMix
DarkSlateGrey #2F4F4FShadesMix
DarkTurquoise #00CED1ShadesMix
DarkViolet #9400D3ShadesMix
DeepPink #FF1493ShadesMix
DeepSkyBlue #00BFFFShadesMix
DimGray #696969ShadesMix
DimGrey #696969ShadesMix
DodgerBlue #1E90FFShadesMix
FireBrick #B22222ShadesMix
FloralWhite #FFFAF0ShadesMix
ForestGreen #228B22ShadesMix
Fuchsia #FF00FFShadesMix
Gainsboro #DCDCDCShadesMix
GhostWhite #F8F8FFShadesMix
Gold #FFD700ShadesMix
GoldenRod #DAA520ShadesMix
Gray #808080ShadesMix
Grey #808080ShadesMix
Green #008000ShadesMix
GreenYellow #ADFF2FShadesMix
HoneyDew #F0FFF0ShadesMix
HotPink #FF69B4ShadesMix
IndianRed  #CD5C5CShadesMix
Indigo  #4B0082ShadesMix
Ivory #FFFFF0ShadesMix
Khaki #F0E68CShadesMix
Lavender #E6E6FAShadesMix
LavenderBlush #FFF0F5ShadesMix
LawnGreen #7CFC00ShadesMix
LemonChiffon #FFFACDShadesMix
LightBlue #ADD8E6ShadesMix
LightCoral #F08080ShadesMix
LightCyan #E0FFFFShadesMix
LightGoldenRodYellow #FAFAD2ShadesMix
LightGray #D3D3D3ShadesMix
LightGrey #D3D3D3ShadesMix
LightGreen #90EE90ShadesMix
LightPink #FFB6C1ShadesMix
LightSalmon #FFA07AShadesMix
LightSeaGreen #20B2AAShadesMix
LightSkyBlue #87CEFAShadesMix
LightSlateGray #778899ShadesMix
LightSlateGrey #778899ShadesMix
LightSteelBlue #B0C4DEShadesMix
LightYellow #FFFFE0ShadesMix
Lime #00FF00ShadesMix
LimeGreen #32CD32ShadesMix
Linen #FAF0E6ShadesMix
Magenta #FF00FFShadesMix
Maroon #800000ShadesMix
MediumAquaMarine #66CDAAShadesMix
MediumBlue #0000CDShadesMix
MediumOrchid #BA55D3ShadesMix
MediumPurple #9370D8ShadesMix
MediumSeaGreen #3CB371ShadesMix
MediumSlateBlue #7B68EEShadesMix
MediumSpringGreen #00FA9AShadesMix
MediumTurquoise #48D1CCShadesMix
MediumVioletRed #C71585ShadesMix
MidnightBlue #191970ShadesMix
MintCream #F5FFFAShadesMix
MistyRose #FFE4E1ShadesMix
Moccasin #FFE4B5ShadesMix
NavajoWhite #FFDEADShadesMix
Navy #000080ShadesMix
OldLace #FDF5E6ShadesMix
Olive #808000ShadesMix
OliveDrab #6B8E23ShadesMix
Orange #FFA500ShadesMix
OrangeRed #FF4500ShadesMix
Orchid #DA70D6ShadesMix
PaleGoldenRod #EEE8AAShadesMix
PaleGreen #98FB98ShadesMix
PaleTurquoise #AFEEEEShadesMix
PaleVioletRed #D87093ShadesMix
PapayaWhip #FFEFD5ShadesMix
PeachPuff #FFDAB9ShadesMix
Peru #CD853FShadesMix
Pink #FFC0CBShadesMix
Plum #DDA0DDShadesMix
PowderBlue #B0E0E6ShadesMix
Purple #800080ShadesMix
Red #FF0000ShadesMix
RosyBrown #BC8F8FShadesMix
RoyalBlue #4169E1ShadesMix
SaddleBrown #8B4513ShadesMix
Salmon #FA8072ShadesMix
SandyBrown #F4A460ShadesMix
SeaGreen #2E8B57ShadesMix
SeaShell #FFF5EEShadesMix
Sienna #A0522DShadesMix
Silver #C0C0C0ShadesMix
SkyBlue #87CEEBShadesMix
SlateBlue #6A5ACDShadesMix
SlateGray #708090ShadesMix
SlateGrey #708090ShadesMix
Snow #FFFAFAShadesMix
SpringGreen #00FF7FShadesMix
SteelBlue #4682B4ShadesMix
Tan #D2B48CShadesMix
Teal #008080ShadesMix
Thistle #D8BFD8ShadesMix
Tomato #FF6347ShadesMix
Turquoise #40E0D0ShadesMix
Violet #EE82EEShadesMix
Wheat #F5DEB3ShadesMix
White #FFFFFFShadesMix
WhiteSmoke #F5F5F5ShadesMix
Yellow #FFFF00ShadesMix
YellowGreen #9ACD32ShadesMix