<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2401702757274511569</id><updated>2012-02-11T11:18:34.308-08:00</updated><category term='what are the storage engine used in mysql'/><category term='Creating Databases'/><category term='how to implement while in php'/><category term='mysql Character Restrictions'/><category term='web'/><category term='WEB DESIGN TEMPLATE'/><category term='php user defined function'/><category term='HTML element'/><category term='if else in php'/><category term='about my sql query browser'/><category term='mysql Database creation'/><category term='php introdution'/><category term='php basic'/><category term='what are the data types in mysql'/><category term='mysql enterprise'/><category term='how to set collation in mysql'/><category term='how to comment in php'/><category term='php comments'/><category term='what is html'/><category term='Temporal Data Types'/><category term='how to build a website'/><category term='flow control in php'/><category term='wamp.about wamp'/><category term='HOW TO MANAGING DATABASES'/><category term='Storage Engine Tier'/><category term='Construct Feedback in php'/><category term='Floating-Point Types'/><category term='php delimiting'/><category term='html introduction'/><category term='Text String Type'/><category term='php control flow'/><category term='MANAGING DATABASE TABLES in mysql'/><category term='user defined function in php'/><category term='web tools'/><category term='SQL Parser'/><category term='mysql'/><category term='types of storage medium'/><category term='numerical datatype'/><category term='while in php'/><category term='MySQL General Architecture'/><category term='web developer'/><category term='Integer Values'/><category term='Storage Engine Breakdown'/><category term='how  to define  text string data types in mysql'/><category term='Database Properties'/><category term='php data types'/><category term='mysql architecture'/><category term='BIT Types'/><category term='Break and Continue in php'/><category term='html'/><category term='delimiting php'/><category term='string data type'/><category term='how to manage a database'/><category term='user defined function'/><category term='Displaying Database Structure'/><category term='mysql foundation'/><category term='php while'/><category term='Creating Databases MYSQL'/><category term='MySQL Identifiers'/><category term='web designer'/><category term='web design'/><category term='Database Design'/><category term='mysql data types'/><category term='do while in php'/><category term='data types in php'/><category term='is mysql case sensitivity'/><category term='introduction'/><category term='need tools for web'/><category term='Integer Data Type'/><category term='php for statement'/><category term='web development tools'/><category term='MySQL server'/><category term='for statement'/><category term='caution while droping database'/><category term='The mysql Client'/><category term='Numeric Data Type'/><category term='web components'/><category term='how to implement flow control in php'/><category term='mys'/><category term='designer tools for web'/><category term='Storage Engines'/><category term='Table Properties in mysql'/><category term='Database Components'/><category term='pluggable storage engins'/><category term='php Break and Continue'/><category term='commenting in php'/><category term='html tags'/><category term='continue statement in php'/><category term='mysql Database Design'/><category term='how  to define string data types in mysql'/><category term='how is date given in mysql'/><category term='Temporal Data Types in mysql'/><category term='Using the Database'/><category term='mysql products'/><category term='MYSQL FOUNDATIONS'/><category term='php'/><category term='mysql introduction'/><category term='designer tools dor web'/><category term='output methods in php'/><category term='break statement in php'/><category term='how to use the database in mysql'/><category term='MySQL Query Browser'/><category term='Using mysql Interactively'/><category term='website'/><category term='Binary String Type'/><category term='Exclusive Data'/><category term='Statement Terminators'/><category term='Fixed-Point Types'/><category term='tags'/><category term='php and mysql'/><category term='how to drop a database'/><category term='mysql gui tools'/><category term='Using DROP DATABASE in mysql'/><category term='client server architecture'/><category term='sample html'/><category term='how html works'/><category term='website using php'/><category term='feedback in php printf in php echo in php'/><category term='String Data Types'/><title type='text'>YOUR WEBSITE</title><subtitle type='html'>THIS IS A BLOG ABOUT HOW TO BUILD YOUR OWN WEB SITE USING PHP AND MYSQL</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>35</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-5986451352667416860</id><published>2012-02-11T11:18:00.000-08:00</published><updated>2012-02-11T11:18:34.355-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Temporal Data Types in mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='Temporal Data Types'/><category scheme='http://www.blogger.com/atom/ns#' term='how is date given in mysql'/><title type='text'>Temporal Data Types</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Date and time data types are referred to as temporal data types. &amp;nbsp;MySQL provides data types for storing&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;different kinds of temporal information. In the following descriptions, the terms YYYY, MM, DD, hh, mm,&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;and ss stand for a year, month, day of month, hour, minute, and second value, respectively.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-zgsVBVA0V58/Tza-QwCet-I/AAAAAAAABsk/_XJsFhVYIA8/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="93" src="http://4.bp.blogspot.com/-zgsVBVA0V58/Tza-QwCet-I/AAAAAAAABsk/_XJsFhVYIA8/s400/1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-5986451352667416860?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/5986451352667416860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/temporal-data-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/5986451352667416860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/5986451352667416860'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/temporal-data-types.html' title='Temporal Data Types'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-zgsVBVA0V58/Tza-QwCet-I/AAAAAAAABsk/_XJsFhVYIA8/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-4391520358087094697</id><published>2012-02-11T09:37:00.000-08:00</published><updated>2012-02-11T10:12:10.555-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='String Data Types'/><category scheme='http://www.blogger.com/atom/ns#' term='Integer Values'/><category scheme='http://www.blogger.com/atom/ns#' term='Binary String Type'/><category scheme='http://www.blogger.com/atom/ns#' term='how  to define  text string data types in mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='Text String Type'/><category scheme='http://www.blogger.com/atom/ns#' term='how  to define string data types in mysql'/><title type='text'>String Data Types</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;A string data type is a data type modeled on the idea of a formal string. They are commonly used to store&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;text or binary data. Types are available to hold values of varying maximum lengths and can be chosen&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;according to if the values are to be treated as text, binary or integer. Strings are such an important and&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;useful data type that they are implemented in nearly every programming language.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-efZRpzKvZ8k/TzTC80_QvVI/AAAAAAAABsU/5e2dKfqVN8Y/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="120" src="http://3.bp.blogspot.com/-efZRpzKvZ8k/TzTC80_QvVI/AAAAAAAABsU/5e2dKfqVN8Y/s400/1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;Text String Type Summary&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;For the storage requirement values, M represents the maximum length of a column. L represents the actual&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;length of a given value, which may be 0 to M.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;span style="background-color: white; color: #0b5394;"&gt;CHAR( ) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; color: #0b5394;"&gt;A fixed section from 0 to 255 characters long.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #0b5394;"&gt;VARCHAR( ) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394;"&gt;A variable section from 0 to 255 characters long.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #0b5394;"&gt;TINYTEXT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; color: #0b5394;"&gt;A string with a maximum length of 255 characters.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #0b5394;"&gt;TEXT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; color: #0b5394;"&gt;A string with a maximum length of 65535 characters.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #0b5394;"&gt;MEDIUMTEXT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; color: #0b5394;"&gt;A string with a maximum length of 16777215 characters.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #0b5394;"&gt;LONGTEXT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; color: #0b5394;"&gt;A string with a maximum length of 4294967295 characters.&lt;/span&gt;&lt;span style="background-color: white; color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;Binary String Type Summary&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;For the storage requirement values, M represents the maximum length of a column. L represents the actual&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;length of a given value, which may be 0 to M.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-zj4ooDamjA4/TzTB90mNV_I/AAAAAAAABsM/LVTo4nkFQtI/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="121" src="http://1.bp.blogspot.com/-zj4ooDamjA4/TzTB90mNV_I/AAAAAAAABsM/LVTo4nkFQtI/s400/1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;Integer Values&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-kt_fDV0_hw4/TzamIV7OfvI/AAAAAAAABsc/ue7R3ZYhPS8/s1600/1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-kt_fDV0_hw4/TzamIV7OfvI/AAAAAAAABsc/ue7R3ZYhPS8/s1600/1.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-4391520358087094697?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/4391520358087094697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/string-data-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/4391520358087094697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/4391520358087094697'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/string-data-types.html' title='String Data Types'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-efZRpzKvZ8k/TzTC80_QvVI/AAAAAAAABsU/5e2dKfqVN8Y/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-7529631762634113057</id><published>2012-02-09T22:42:00.000-08:00</published><updated>2012-02-09T22:42:26.539-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BIT Types'/><category scheme='http://www.blogger.com/atom/ns#' term='Integer Data Type'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql data types'/><category scheme='http://www.blogger.com/atom/ns#' term='Numeric Data Type'/><category scheme='http://www.blogger.com/atom/ns#' term='Floating-Point Types'/><category scheme='http://www.blogger.com/atom/ns#' term='Fixed-Point Types'/><title type='text'>Numeric Data Type</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For storing numeric data, MySQL provides integer data &amp;nbsp;types, floating-point types that store approximate-value (real) numbers, a fixed-point type that stores exact-value (real) numbers, and a BIT type for bit-field&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;values. &amp;nbsp;When numeric data type is chosen, consider the following factors: &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;• &amp;nbsp; The range of values the data type represents &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;• &amp;nbsp; The amount of storage space that column values require &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;• &amp;nbsp; The column precision and scale for floating-point and fixed-point values &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Precision and scale are terms that apply to floating-point and fixed-point values, which can have both an&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;integer part and a fractional part. Precision is the number of significant digits. Scale is the number of digits&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;to the right of the decimal point.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;Integer Data Type&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The integer data types are summarized in the following table, which indicates the amount of storage per&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;value that each type requires as well as its ra nge. &amp;nbsp;For integer values declared with the &amp;nbsp;UNSIGNED&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;attribute, negative values are not allowed, and the high end of the range shifts upward to approximately&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;double the maximum positive value of the signed range.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;table border="1" cellpadding="3" cellspacing="4"&gt;  &lt;tbody&gt;&lt;tr&gt;    &lt;th width="13%"&gt;Type&lt;/th&gt;    &lt;th width="16%"&gt;Storage&lt;br /&gt;Required&lt;/th&gt;    &lt;th width="33%"&gt;Signed Range&lt;/th&gt;    &lt;th width="38%"&gt;Unsigned Range&lt;/th&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td&gt;TINYINT&lt;/td&gt;    &lt;td&gt;1 byte&lt;/td&gt;    &lt;td&gt;–128 to 127&lt;/td&gt;    &lt;td&gt;0 to 255&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td&gt;SMALLINT&lt;/td&gt;    &lt;td&gt;2 bytes&lt;/td&gt;    &lt;td&gt;–32,768 to 32,767&lt;/td&gt;    &lt;td&gt;0 to 65,535 &lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td&gt;MEDIUMINT&lt;/td&gt;    &lt;td&gt;3 bytes&lt;/td&gt;    &lt;td&gt;–8,388,608 to 8,388,607&lt;/td&gt;    &lt;td&gt;0 to 16,777,215 &lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td&gt;INT&lt;/td&gt;    &lt;td&gt;4 bytes&lt;/td&gt;    &lt;td&gt;–2,147,683,648 to 2,147,483,647&lt;/td&gt;    &lt;td&gt;0 to 4,294,967,295&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td&gt;BIGINT&lt;/td&gt;    &lt;td&gt;8 bytes&lt;/td&gt;    &lt;td&gt;–9,223,372,036,854,775,808 to      9,223,372,036,854,775,807&lt;/td&gt;    &lt;td&gt;0 to 18,446,744,073,709,551,615&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;Floating-Point Types&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The floating-point data types include &amp;nbsp;FLOAT and DOUBLE. &amp;nbsp;Each of these types may be used to&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;represent approximate-value numbers that have an integer part, a fractional part, or both. &amp;nbsp; FLOAT and&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;DOUBLE data types represent values in the native binary floating-point format (IEEE 754) used by the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;server host's CPU. &amp;nbsp;This is a very efficient type &amp;nbsp;for storage and computation, but values are subject to&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;rounding error.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border="1" cellpadding="3" cellspacing="4"&gt;  &lt;tbody&gt;&lt;tr&gt;    &lt;th&gt;Type&lt;/th&gt;    &lt;th&gt;Storage Required&lt;/th&gt;    &lt;th&gt;Signed Range&lt;/th&gt;    &lt;th&gt;Unsigned Range&lt;/th&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td height="57"&gt;FLOAT&lt;/td&gt;    &lt;td&gt;4 bytes&lt;/td&gt;    &lt;td&gt;-3.402823466E+38 to&lt;br /&gt;-1.175494351E-38&lt;/td&gt;    &lt;td&gt;0 and 1.175494351E-38 to&lt;br /&gt;3.402823466E+38&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td height="62"&gt;DOUBLE&lt;/td&gt;    &lt;td&gt;8 bytes&lt;/td&gt;    &lt;td&gt;-1.7976931348623157E+308 to&lt;br /&gt;-2.2250738585072014E-308&lt;/td&gt;    &lt;td&gt;0 and 2.2250738585072014E-308&lt;br /&gt;to 1.7976931348623157E+308 &lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;Fixed-Point Types&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The fixed-point data type is DECIMAL . &amp;nbsp;It is used to represent exact-v alue numbers that have an integer&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;part, a fractional part, or both. &amp;nbsp; DECIMAL &amp;nbsp;uses a fixed-decimal storage format: All values in a&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;DECIMAL &amp;nbsp;column have the same number of decimal places and are stored exactly as given when&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;possible. &amp;nbsp;DECIMAL &amp;nbsp;values are not processed quite as efficiently as &amp;nbsp;FLOAT or &amp;nbsp;DOUBLE values (which&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;use the processor's native binary format), but &amp;nbsp;DECIMAL &amp;nbsp;values are not subject to rounding error, so they&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;are more accurate. &amp;nbsp;In other words, there is an accur acy versus speed tradeoff in choosing which type to&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;use. &amp;nbsp;For example, the &amp;nbsp;DECIMAL &amp;nbsp;data type is a popular choice for financial applications involving&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;currency calculations, because accuracy is most important.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The amount of storage required for &amp;nbsp;DECIMAL &amp;nbsp;column values depends on the precision and scale.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Approximately four bytes are required per nine digits on each side of the decimal point. The maximum&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;range is the same as for DOUBLE; the effective range for a given &amp;nbsp;DECIMAL &amp;nbsp;column is determined by&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;precision and scale.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: #741b47;"&gt;NUMERIC Data Type&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: #741b47;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; color: #0b5394; text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The NUMERIC data type in MySQL is a synonym for DECIMAL. (If a column is declared as NUMERIC,MySQL uses DECIMAL in the definition.) Standard SQL allows for a difference between the two types, but in&amp;nbsp;MySQL they are the same. In standard SQL, the precision for NUMERIC must be exactly the number of digits&amp;nbsp;given in the column definition. The precision for DECIMAL must be at least that many digits but is allowed to be&amp;nbsp;more. In MySQL, the precision is exactly as given, for both types&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; color: #0b5394; text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; color: #0b5394; text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;BIT Types&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The BIT data type represents bit-field values. &amp;nbsp; BIT &amp;nbsp;column specifications take a width indicating the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;number of bits per value, from 1 to 64 bits. &amp;nbsp;For a BIT(n) column, the range of values is 0 to 2&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;n&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;– 1, and&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;the storage requirement &amp;nbsp;is approximately INT((n +7)/8) bytes per value. &amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;BIT &amp;nbsp;columns can also be assigned values using numeric expressions. &amp;nbsp;To write literal bit values in binary&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;format, the literal-value notation b' val' can be used, where &amp;nbsp;val indicates a value consisting of the binary&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;digits 0 and 1. &amp;nbsp;For example, b'1111' equals 15 and b'1000000' equals 64. &amp;nbsp;Rule of thumb for storage size: &amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;n=8 takes 1 Byte.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-7529631762634113057?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/7529631762634113057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/numeric-data-type.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/7529631762634113057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/7529631762634113057'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/numeric-data-type.html' title='Numeric Data Type'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-4029266714838283460</id><published>2012-02-09T22:32:00.000-08:00</published><updated>2012-02-09T22:32:53.833-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='numerical datatype'/><category scheme='http://www.blogger.com/atom/ns#' term='what are the data types in mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql data types'/><category scheme='http://www.blogger.com/atom/ns#' term='string data type'/><title type='text'>MySQL Data Types</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Before going to deep into the creation of tables, it is important to understand the data types that can be used&amp;nbsp;within MySQL. &amp;nbsp;These data types will be assigned to &amp;nbsp;the columns that will make up the MySQL tables and&amp;nbsp;will need to be understood, not only for ensuring the proper data is being stored but also to ensure a database&amp;nbsp;that performs well. &amp;nbsp;One of the biggest problems associated with database performance is poor design,&amp;nbsp;especially in the choice of data type s that are used in the columns. &amp;nbsp;In &amp;nbsp;MySQL the data types available can&amp;nbsp;be broken down into three major categories:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;Numeric &amp;nbsp; &amp;nbsp; &amp;nbsp;• &amp;nbsp; &amp;nbsp;Numeric values (Integers, Floating-Point, Fixed-Point and Bit-field)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;String &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;• &amp;nbsp; &amp;nbsp;Text or binary data&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;Temporal &amp;nbsp; &amp;nbsp;• &amp;nbsp; Time and dates&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Within each category there are numerous specific data types that use varying amounts of memory and disk&amp;nbsp;space, thus having varying effects on performance. &amp;nbsp;Choosing the best data type for the column has a rather&amp;nbsp;small effect on performance in an individual record, but as the database grows these small effects can lead to&amp;nbsp;larger effects. &amp;nbsp;This should be taken into accoun t early in the design process, before they become&amp;nbsp;performance issues.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-4029266714838283460?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/4029266714838283460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/mysql-data-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/4029266714838283460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/4029266714838283460'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/mysql-data-types.html' title='MySQL Data Types'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-5066308725128122807</id><published>2012-02-07T10:15:00.000-08:00</published><updated>2012-02-08T23:38:16.987-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='what are the storage engine used in mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='pluggable storage engins'/><category scheme='http://www.blogger.com/atom/ns#' term='Storage Engines'/><title type='text'>Storage Engines</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;When creating a table in MySQL, the storage&amp;nbsp;engine that will be used has to be chosen. &amp;nbsp;If&amp;nbsp;one is not chosen, MySQL uses the default&amp;nbsp;storage engine chosen in the configuration of&amp;nbsp;the server. &amp;nbsp;MySQL supports several storage&amp;nbsp;engines that act as handlers for different table&amp;nbsp;types. MySQL storage engines include both&amp;nbsp;those that handle transaction-safe tables and&amp;nbsp;those that handle non-transaction-safe tables.&amp;nbsp;There are numerous storage engines that&amp;nbsp;MySQL supports; however the most common&amp;nbsp;storage types that are used with PHP are listed&amp;nbsp;below:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-S4fKTrEVAO4/TzFpENQx8zI/AAAAAAAABr4/cH0a_ICdi2A/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="225" src="http://1.bp.blogspot.com/-S4fKTrEVAO4/TzFpENQx8zI/AAAAAAAABr4/cH0a_ICdi2A/s320/1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;• &amp;nbsp;MyISAM -&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; This storage engine is&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;supported in all MySQL configurations and is the default storage engine for all new tables created&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;(when a specific storage engine is not assigned) in the majority of default installations. &amp;nbsp;This&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;storage engine manages non-transactional tables. &amp;nbsp;It provides high-speed storage and retrieval, as&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;well as fulltext searching capabilities. &amp;nbsp;MyISAM is a disk based storage engine. &amp;nbsp;Aiming for very&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;low overhead, it does not support transactions.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;• &amp;nbsp;InnoDB -&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; InnoDB is also disk based, but offers versioned, fully ACID transactional capabilities.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;InnoDB requires more disk space than MyISAM to store its data, and this increased overhead is&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;compensated by more aggressive use of memory caching, in order to attain high speeds. &amp;nbsp;InnoDB&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;is included by default in all MySQL 5.0 binary distributions.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;• &amp;nbsp;Memory (formerly called "Heap") -&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; This storage engine provides in-memory (utilizes only RAM)&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;tables. &amp;nbsp;Special algorithms are used that make optimal use of this environment. It is very fast. Like&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;MyISAM, the Memory storage engine handles non-transactional tables, and is also included in&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;MySQL by default. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;• &amp;nbsp;NDB -&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; This is the MySQL Cluster Storage engine which connects to a cluster of nodes, offering&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;high availability through redundancy, high performance through fragmentation (partitioning) of&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;data across multiple node groups, and excellent scalability through the combination of these two.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Prior to MySQL 5.1, NDB used main-memory only, with logging to disk.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;Table Limits&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The MySQL server has no limits overall on the number of tables that can be created in a database; however,&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;there are limits within the storage engine type itself or on in the operating system that contains the MySQL&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;server. &amp;nbsp;InnoDB, for example, limits the number of tables that can be created for the entire database to 2 million&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;tables. &amp;nbsp;This means that one database server can not contain more the 2 million tables across one database or&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;multiple databases. &amp;nbsp;This is because all InnoDB tables are stored in a central files in the operating system and&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;not separated out by database. &amp;nbsp;MyISAM tables on the other hand do not have any such limitations; however,&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;the operating system can oppose limits on the number of files that can be stored on disk or in an individual sub-&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;directory.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-5066308725128122807?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/5066308725128122807/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/storage-engines.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/5066308725128122807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/5066308725128122807'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/storage-engines.html' title='Storage Engines'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-S4fKTrEVAO4/TzFpENQx8zI/AAAAAAAABr4/cH0a_ICdi2A/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-1058700538934214088</id><published>2012-02-07T10:08:00.000-08:00</published><updated>2012-02-08T11:02:28.871-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MANAGING DATABASE TABLES in mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='Table Properties in mysql'/><title type='text'>MANAGING DATABASE TABLES</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;b&gt;Table Properties&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The heart of any database is the tables, because the tables contain the data that is used to provide information&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;to the end users. &amp;nbsp;Tables are contained in databases, and in MySQL each database has an associated "data&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;directory" to store all the physical components of the database, to include tables. &amp;nbsp;This physical&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;representation on disk of the tables &amp;nbsp;is dependent on the type of storage engine that the table is utilizing;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;however, every table, no matter of the type of storage engine that is being used, contains a format file&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;(table_name.frm) which describes the table definition and structure.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; In addition to the physical representation of the table, there is also the better known logical aspect of the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;table. This logical aspect is represented in rows and columns. &amp;nbsp;Rows within a table, consist of a collection of&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;values that describe an entity (ex. an employee). &amp;nbsp;Columns within a table, consist of a collection of similar&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;data among rows (ex. employee surnames). &amp;nbsp;The intersection of row and column contains individual data&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;items called values. &amp;nbsp;Values are always atomic, in that each position in a table may contain only one datum&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;(piece of data).&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-UT0sKY1e2tY/TzFn47y_AmI/AAAAAAAABrw/68nitRnrOYU/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="217" src="http://1.bp.blogspot.com/-UT0sKY1e2tY/TzFn47y_AmI/AAAAAAAABrw/68nitRnrOYU/s400/1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-1058700538934214088?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/1058700538934214088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/managing-database-tables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/1058700538934214088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/1058700538934214088'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/managing-database-tables.html' title='MANAGING DATABASE TABLES'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-UT0sKY1e2tY/TzFn47y_AmI/AAAAAAAABrw/68nitRnrOYU/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-291865241262859059</id><published>2012-02-07T10:01:00.000-08:00</published><updated>2012-02-08T11:02:28.932-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Using DROP DATABASE in mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='caution while droping database'/><category scheme='http://www.blogger.com/atom/ns#' term='how to drop a database'/><title type='text'>Drop a Database</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;When a database is no longer needed, it can be removed with DROP DATABASE:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;DROP DATABASE my_db;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;It is an error if the database does not exist. &amp;nbsp;To cause a warning instead, include an IF EXISTS clause;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: #0b5394;"&gt;DROP DATABASE IF EXISTS my_db;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Any warning generated when IF EXISTS is used can be displayed with SHOW WARNINGS.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;DROP DATABASE &amp;nbsp;does not require the database to be empty. &amp;nbsp;When dropping the database, MySQL&amp;nbsp;removes any objects that it contains; such as tables, stored procedures, triggers, etc.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;A successful DROP DATABASE returns a row count that indicates &amp;nbsp;the number of tables dropped. (This&amp;nbsp;actually is the number of &amp;nbsp;.frm files removed, which amounts to the same thing.) &amp;nbsp;Use the &amp;nbsp;SHOW&amp;nbsp;DATABASES command to verify that the database has been dropped.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;CAUTION: When Using DROP DATABASE&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;A database is represented by a directory under the data directory. The server deletes only files and&amp;nbsp;directories that it can identify as having been created by itself (for example, &amp;nbsp;.frm files or RAID&amp;nbsp;directories). It does not delete other files and directories. If a non-table files have been placed in that&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;directory, those files are not deleted by the DROP DATABASE command. This results in failure to remove&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;the database directory and DROP DATABASE fails. In that case, the database will continue to be listed by&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;SHOW DATABASES. To correct this problem, manually remove the database directory and any files within&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;it. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-291865241262859059?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/291865241262859059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/drop-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/291865241262859059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/291865241262859059'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/drop-database.html' title='Drop a Database'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-6582049606320010326</id><published>2012-02-07T09:54:00.000-08:00</published><updated>2012-02-07T23:02:22.466-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='how to use the database in mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='Displaying Database Structure'/><category scheme='http://www.blogger.com/atom/ns#' term='Using the Database'/><title type='text'>Using the Database</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; Creating a database has no effect on which database currently is selected as the default database. &amp;nbsp;To make&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;the new database the default database, issue a USE statement: &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;USE my_db;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;After a database has been created, it can be populated with objects such as tables or stored routines. &amp;nbsp;The&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;CREATE statement for tables is discussed in a later chapter.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: red;"&gt;Displaying Database Structure&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The easiest way to display the database structure (as far as the&amp;nbsp;database container) is to issue a SHOW CREATE DATABASE command. This command&amp;nbsp;shows the &amp;nbsp;CREATE DATABASE statement that was used to create &amp;nbsp;the database (or could be used to&amp;nbsp;recreate the database structure): &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;mysql&amp;gt; SHOW CREATE DATABASE my_db\G&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;************************* 1. row *************************&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Database: my_db&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Create Database: CREATE DATABASE `my_db`&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_danish_ci */&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #6aa84f;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Note: SCHEMA can be interchanged with DATABASE to perform the above statements. (i.e., CREATE&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;SCHEMA mydb;)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;Problems&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; When a CREATE DATABASE command fails, the two most common problems are insufficient or incorrect&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;permissions, or an attempt to create a database that already exists.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-6582049606320010326?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/6582049606320010326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/using-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/6582049606320010326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/6582049606320010326'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/using-database.html' title='Using the Database'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-4338627179274577383</id><published>2012-02-07T09:50:00.000-08:00</published><updated>2012-02-07T23:02:17.777-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Creating Databases MYSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Creating Databases'/><category scheme='http://www.blogger.com/atom/ns#' term='how to set collation in mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql Database creation'/><title type='text'>Creating Databases</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;To create a new database, use the &amp;nbsp;CREATE DATABASE statement. &amp;nbsp;The following statement creates a&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;database named my_db: &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;CREATE DATABASE my_db;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;If an attempt is made to create a database that already exists, an error occurs. &amp;nbsp;To ensure that the database&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;exists, add an IF NOT EXISTS clause to the statement: &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;CREATE DATABASE IF NOT EXISTS my_db;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;With the additional clause, the statement creates the database only if it does not already exist. &amp;nbsp;Otherwise,&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;the statement does nothing and no error occurs. &amp;nbsp;This can be useful in applications that need to ensure that a&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;given database is available, without disrupting any existing database with the same name. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The CREATE DATABASE statement has two optional clauses, CHARACTER SET and COLLATE, that assign a&amp;nbsp;default character set and collation for the database. &amp;nbsp;If given, they appear at the end of the statement following the&amp;nbsp;database name. &amp;nbsp;The following statement specifies that the mydb database has a default character set of utf8 and&amp;nbsp;collation of utf8_danish_ci: &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&lt;span style="color: #0b5394;"&gt; CREATE DATABASE my_db CHARACTER SET utf8 COLLATE utf8_danish_ci;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The default character set and collation for the database are used as the defaults for tables created in the database for&amp;nbsp;which no explicit character set or collation of their own are specified. &amp;nbsp;The database defaults are stored in the db.opt&amp;nbsp;file in the database directory. &amp;nbsp;Note: &amp;nbsp;CHARACTER SET is really a column setting. &amp;nbsp;By giving the table or the&amp;nbsp;database a character set, it just affects the columns upon creation.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-4338627179274577383?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/4338627179274577383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/creating-databases.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/4338627179274577383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/4338627179274577383'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/creating-databases.html' title='Creating Databases'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-4785356057340781850</id><published>2012-02-07T09:08:00.000-08:00</published><updated>2012-02-07T09:08:38.829-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql Character Restrictions'/><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Identifiers'/><category scheme='http://www.blogger.com/atom/ns#' term='is mysql case sensitivity'/><title type='text'>MySQL Identifiers</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The are five kinds of identifiers that need to be considered in MySQL: databases, tables, columns, indexes&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;and aliases. &amp;nbsp;Databases, as stated are the containers for the tables and other associated database components.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Tables hold the data that is used to produce information. &amp;nbsp;Columns are the individual entities of the tables that&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;contain the smallest portion of the data. &amp;nbsp;Indexes in databases refer to the data structures that improve the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;speed of operations in a table. Aliases are temporary names assigned to database components. The identifiers&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;that can be assigned to each component have their limitations:&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;•&lt;span style="color: red;"&gt; &amp;nbsp;Size -&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The following table describes the max length each database identifier can be assigned:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;table border="1" cellpadding="1" cellspacing="2" style="text-align: center;"&gt;  &lt;tbody&gt;&lt;tr&gt;    &lt;th width="30%"&gt;&lt;div align="center"&gt;&lt;span style="color: magenta;"&gt;Identifier&lt;/span&gt;&lt;/div&gt;&lt;/th&gt;    &lt;th width="70%"&gt;&lt;div align="center"&gt;&lt;span style="color: magenta;"&gt;Maximum Length&lt;/span&gt;&lt;/div&gt;&lt;/th&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td&gt;&lt;div align="center"&gt;&lt;span style="color: magenta;"&gt;Database&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;td&gt;&lt;div align="center"&gt;&lt;span style="color: magenta;"&gt;64 Bytes&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td&gt;&lt;div align="center"&gt;&lt;span style="color: magenta;"&gt;Table&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;td&gt;&lt;div align="center"&gt;&lt;span style="color: magenta;"&gt;64 Bytes&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td&gt;&lt;div align="center"&gt;&lt;span style="color: magenta;"&gt;Column&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;td&gt;&lt;div align="center"&gt;&lt;span style="color: magenta;"&gt;64 Bytes&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td&gt;&lt;div align="center"&gt;&lt;span style="color: magenta;"&gt;Index&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;td&gt;&lt;div align="center"&gt;&lt;span style="color: magenta;"&gt;64 Bytes&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td&gt;&lt;div align="center"&gt;&lt;span style="color: magenta;"&gt;Alias&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;td&gt;&lt;div align="center"&gt;&lt;span style="color: magenta;"&gt;255 Bytes&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The length of the identifier is in bytes, not characters. The maximum length will depend on the byte count of all the characters used and should be taken into consideration if using multi-byte characters in the identifier names. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;Case Sensitivity -&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In MySQL, databases correspond to directories within the data directory. Each&amp;nbsp;table within a database corresponds to at least one file within the database directory (and possibly&amp;nbsp;more, depending on the storage engine). Consequently, the case sensitivity of the underlying&amp;nbsp;operating system determines the case sensitivity of database and table names. &amp;nbsp;This means&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;database and table names are case sensitive in most varieties of Unix, and not case sensitive in &amp;nbsp;Windows.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Although database and table names are not case sensitive on some platforms, database or table&amp;nbsp;names should not be referred to using different cases within the same statement. The following&amp;nbsp;statement would not work because it refers to a table both as my_table and as&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;MY_TABLE:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;mysql&amp;gt; SELECT * FROM my_table WHERE MY_TABLE.col=1;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;Character Restrictions -&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;It is best practice to include only alphanumeric characters (and&amp;nbsp;underscore or dashes) in the identifier names; however, other characters can be used if no other&amp;nbsp;way is acceptable. &amp;nbsp;Here is a list or restrictions that also need to be considered in such an event:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Arial, Helvetica, sans-serif;"&gt;○ &amp;nbsp;No identifier can contain ASCII 0 (0x00) or a byte with a value of 255&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Arial, Helvetica, sans-serif;"&gt;○ &amp;nbsp;The use of identifier quote characters in identifiers is permitted, although it is best to avoid&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Arial, Helvetica, sans-serif;"&gt;doing so if possible&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Arial, Helvetica, sans-serif;"&gt;○ &amp;nbsp;Database, table, and column names should not end with space characters&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Arial, Helvetica, sans-serif;"&gt;○ &amp;nbsp;Before MySQL 5.1.6, database names and table names cannot contain “/”, “\”, “.”, or&amp;nbsp;characters that are not allowed in a directory name&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Arial, Helvetica, sans-serif;"&gt;○ &amp;nbsp;Identifiers may begin with a digit but unless quoted may not consist solely of digits&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Arial, Helvetica, sans-serif;"&gt;○ &amp;nbsp;It is recommended that names of the form Me or MeN, where M and N are integers. &amp;nbsp;For&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Arial, Helvetica, sans-serif;"&gt;example, avoid using 1e or 2e2 as identifiers, because an expression such as 1e+3 is&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Arial, Helvetica, sans-serif;"&gt;ambiguous. &amp;nbsp;Depending on context, it might be interpreted as the expression 1e + 3 or as the&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Arial, Helvetica, sans-serif;"&gt;number 1e+3.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-4785356057340781850?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/4785356057340781850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/mysql-identifiers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/4785356057340781850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/4785356057340781850'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/mysql-identifiers.html' title='MySQL Identifiers'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-5112969581613335289</id><published>2012-02-07T08:51:00.000-08:00</published><updated>2012-02-07T08:51:42.519-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql Database Design'/><category scheme='http://www.blogger.com/atom/ns#' term='MySQL server'/><category scheme='http://www.blogger.com/atom/ns#' term='Database Design'/><category scheme='http://www.blogger.com/atom/ns#' term='Exclusive Data'/><title type='text'>Database Design Practices</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;In database discussions, it is common to hear the term normalization or database design come up. However,&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;for the most parts these discussions revolve around splitting up the data that is stored between different&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;tables to improve performance and to eliminate duplication. &amp;nbsp;This is extremely important and should be&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;discussed in any discussion on tables but for the most part the discussions do not involve splitting up data&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;between databases. &amp;nbsp;This is either assumed or just not put into practice as often as it should be. &amp;nbsp;Either way,&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;it is important to consider when designing an application that will need to access data.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-_FZfBE3HA-I/Ty-SbJqtESI/AAAAAAAABrk/ryEkD4eTVSQ/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="188" src="http://2.bp.blogspot.com/-_FZfBE3HA-I/Ty-SbJqtESI/AAAAAAAABrk/ryEkD4eTVSQ/s400/1.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Information Commonality&amp;nbsp;Data could be defined as the actual&amp;nbsp;values that are stored in the&amp;nbsp;database itself and are static until&amp;nbsp;they are changed by some process&amp;nbsp;(either manually or automated).&amp;nbsp;Data by itself is useless if not&amp;nbsp;processed in such a way as to give&amp;nbsp;it meaning. &amp;nbsp;Information, on the&amp;nbsp;other hand, is data processed in&amp;nbsp;such a way as to give it meaning&amp;nbsp;and is constantly changing based&amp;nbsp;on the data stored. &amp;nbsp;In addition, the&amp;nbsp;majority of data collected can be&amp;nbsp;processed in multiple ways to provide multiple meaningful outputs. &amp;nbsp;In databases, many developers look at&amp;nbsp;the data that is contained versus the information that the data is designed to provide. &amp;nbsp;Databases should be&amp;nbsp;developed in such a way that each database produces a common set of information. &amp;nbsp;Tables that would hold&amp;nbsp;data associated with human resource information should not be contained in the same database as tables&amp;nbsp;that would contain parts for aircrafts in an airline database system. &amp;nbsp;If there is a need for the data in the&amp;nbsp;inventory database to interact with data in the human resource database to provide the proper information,&amp;nbsp;the MySQL server can pull data from the tables holding the data (even though they are in two different&amp;nbsp;databases) to provide such information. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;Exclusive Data&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-TikJvzRD3fU/Ty-SGeR9KjI/AAAAAAAABrc/S1Vm69YMddY/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="185" src="http://1.bp.blogspot.com/-TikJvzRD3fU/Ty-SGeR9KjI/AAAAAAAABrc/S1Vm69YMddY/s400/1.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;In such situations where there are separate entities that utilize the same data structures, separating out the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;data may be the safest and most reliable way to ensure data integrity. &amp;nbsp;An example would be an accounting&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;firm that is responsible for the payroll of two or three companies. &amp;nbsp;The application that would be created to&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;support such as system could utilize the same data structures but have separate databases containing the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;actual data for each company. &amp;nbsp;This would eliminate any chance that data from one company could interact&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;with data from another company which would create an insecure and potentially precarious situation. &amp;nbsp;This&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;would require time and energy put&amp;nbsp;into ensuring that the database and its&amp;nbsp;underlying components were solid&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;enough to avoid the need for&amp;nbsp;structural changes after implentation.&amp;nbsp;Copying database structures from one&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;database to another is an easy process&amp;nbsp;in MySQL; however, any future&amp;nbsp;changes would have to be done in the&amp;nbsp;individual databases separately.&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-5112969581613335289?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/5112969581613335289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/database-design-practices.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/5112969581613335289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/5112969581613335289'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/database-design-practices.html' title='Database Design Practices'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-_FZfBE3HA-I/Ty-SbJqtESI/AAAAAAAABrk/ryEkD4eTVSQ/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-4641644349836089549</id><published>2012-02-06T20:46:00.000-08:00</published><updated>2012-02-07T08:47:16.682-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HOW TO MANAGING DATABASES'/><category scheme='http://www.blogger.com/atom/ns#' term='Database Properties'/><category scheme='http://www.blogger.com/atom/ns#' term='how to manage a database'/><category scheme='http://www.blogger.com/atom/ns#' term='Database Components'/><title type='text'>HOW TO MANAGING DATABASES</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;Database Properties&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The heart of any database is the tables, because the tables contain the data that is used to provide information&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;to the end users. Tables are contained in databases, and in MySQL each database has an associated "data&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;directory" to store all the physical components of the database, to include tables. This physical&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;representation on disk of the tables is dependent on the type of storage engine that the table is utilizing;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;however, every table, no matter of the type of storage engine that is being used, contains a format file&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;(table_name.frm) which describes the table definition and structure.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;In addition to the physical representation of the table, there is also the better known logical aspect of the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;table. This logical aspect is represented in rows and columns. Rows within a table, consist of a collection of&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;values that describe an entity (ex. an employee). Columns within a table, consist of a collection of similar&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;data among rows (ex. employee surnames). The intersection of row and column contains individual data&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;items called values. Values are always atomic, in that each position in a table may contain only one datum&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;(piece of data).&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Without the ability to obtain information from the database, there is no need for the data to be stored.&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;However, the tables are of little value unless they are contained in a unified and associated manner that&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;allow for the storage, retrieval and manipulation of the data. This is where the database comes in. For its&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;part, the database can be thought of as the container for the tables (which are the containers for the data). In&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;MySQL, databases manage their associated components in locations called "data directories". These data&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;directories (meaning there can be more than one database that the MySQL server can manage) are located in&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;a central sub-directory of the mysql installation and can be seen through the operating system on which the&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;MySQL Server is running. MySQL "data directories" have the following common structures:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;• &lt;span style="color: red;"&gt;Data Directory&lt;/span&gt; - In MySQL, there is a parent directory for all the databases that are managed by&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;that instance of the MySQL Server.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;• &lt;span style="color: red;"&gt;Database Name&lt;/span&gt; - The database name given to the represent the database in the MySQL server is&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;also the name of the associated data sub-directory. This limits the naming conventions that can be&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;used when giving databases a name.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;• &lt;span style="color: red;"&gt;Database Components&lt;/span&gt; - The data directory is responsible for managing the majority of&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;component associated with the associated database in the MySQL server. This includes such&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;components as the tables, stored procedures, triggers, views, etc.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;• &lt;span style="color: red;"&gt;Database Character Set Support&lt;/span&gt; - Each database is defined with a default character set and&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;collation (a character set is a set of symbols and encodings and a collation is a set of rules for&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;comparing characters in a character set). This behavior ensures that each table created within the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;database takes on the same characteristics associated with the default values; however, tables&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;themselves can also be created with different character sets and collations than their database&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;container.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;• &lt;span style="color: red;"&gt;Database Hierarchy&lt;/span&gt; - Databases are "flat" in the sense that they can not be nested, meaning a&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;database can not contain a database itself.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;• &lt;span style="color: red;"&gt;Unlimited Databases&lt;/span&gt; - The MySQL server has no limit on the number of databases that it can&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;contain; however, the operating system may limit the number of sub-directories that a directory&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;can contain thus limiting the number of databases that can be created.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-4641644349836089549?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/4641644349836089549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/how-to-managing-databases.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/4641644349836089549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/4641644349836089549'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/how-to-managing-databases.html' title='HOW TO MANAGING DATABASES'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-7307836236203505167</id><published>2012-02-06T20:45:00.001-08:00</published><updated>2012-02-06T20:45:48.659-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='types of storage medium'/><category scheme='http://www.blogger.com/atom/ns#' term='Storage Engine Breakdown'/><title type='text'>Storage Engine Breakdown</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;The following diagram represents a simplified view of the MySQL server and its interaction with the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;storage engines.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-WjX_P3XWghA/Tyj5rN_QfiI/AAAAAAAABrA/t20lQpfh1GY/s1600/untitled.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="279" src="http://1.bp.blogspot.com/-WjX_P3XWghA/Tyj5rN_QfiI/AAAAAAAABrA/t20lQpfh1GY/s400/untitled.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;The following properties are storage engine dependant:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;• &lt;span style="color: red;"&gt;Storage Medium&lt;/span&gt; – Each table uses its own method of storing the data it contains.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;• &lt;span style="color: red;"&gt;Transactional Capabilities&lt;/span&gt; – Certain storage engines handle transactional processing which&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;ensures that integrity of a database is maintained during the processing of multiple SQL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;statements.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;•&lt;span style="color: red;"&gt; Locking&lt;/span&gt; – Each storage engines handles the processes of the synchronization mechanism for&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;enforcing limits on access to a resource in an environment where there are many threads of&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;execution.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;• &lt;span style="color: red;"&gt;Backup and Recovery&lt;/span&gt; – Based on the storage medium used, the backup of the table data and the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;recovery of that data can be distinct.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;• &lt;span style="color: red;"&gt;Optimization &lt;/span&gt;– There are specific issues associated with each storage engine for the optimization&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;of the storage of the data and retrieval of the data through the MySQL server.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;• &lt;span style="color: red;"&gt;Special Features&lt;/span&gt; – There are a number of features that exist only in certain engine types to&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;include full-text search, referential integrity and the ability to handle spatial data.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Most of the MySQL server operates in the same way no matter what storage engine is used: all the usual&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;SQL commands are independent of the storage engine. Naturally, the optimizer may need to make&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;different choices depending on the storage engine, but this is all handled through a standardized interface&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;(API) which each storage engine supports.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-7307836236203505167?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/7307836236203505167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/storage-engine-breakdown.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/7307836236203505167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/7307836236203505167'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/storage-engine-breakdown.html' title='Storage Engine Breakdown'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-WjX_P3XWghA/Tyj5rN_QfiI/AAAAAAAABrA/t20lQpfh1GY/s72-c/untitled.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-1916722499389907799</id><published>2012-02-06T20:45:00.000-08:00</published><updated>2012-02-06T20:45:19.195-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Query Browser'/><category scheme='http://www.blogger.com/atom/ns#' term='about my sql query browser'/><title type='text'>MySQL Query Browser</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;MySQL Query Browser is a cross-platform GUI client program that's intuitive and easy to use. It provides&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;a graphical interface to the MySQL server for querying and analyzing data. The MySQL Query Browser&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;provides a Connection dialog that enables a connection to a MySQL server. This section describes how to&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;use the Connection dialog and the Main Query Browser GUI.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial,Helvetica,sans-serif; font-size: large;"&gt;Using the Connection Dialog&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;MySQL Query Browser presents a Connection dialog when it starts or when the New Instance Connection&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;… is selected from the File menu. Connecting to a MySQL server can be accomplished either by filling in&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;the connection dialog box fields with the parameters required to connect to a server or selecting from&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;among any predefined connection profiles.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: red; font-family: Arial,Helvetica,sans-serif; font-size: large;"&gt;Connection Dialog Window:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-Rj7gpkNZtbc/Tyj_ZWeHpHI/AAAAAAAABrI/Gr0jhxjZ004/s1600/1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-Rj7gpkNZtbc/Tyj_ZWeHpHI/AAAAAAAABrI/Gr0jhxjZ004/s1600/1.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;To connect to a MySQL server by specifying connection parameters directly, fill in the &amp;nbsp;appropriate fields&amp;nbsp;beginning with the Username field and click the OK button. To connect using the parameters stored in a&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;connection profile, select the profile from the Connection drop-down list and click the OK button.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial,Helvetica,sans-serif; font-size: large;"&gt;The MySQL Query Browser Window&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-zvGJcfyO15o/TykANjYF3KI/AAAAAAAABrQ/cUoyZoITbtI/s1600/2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="256" src="http://1.bp.blogspot.com/-zvGJcfyO15o/TykANjYF3KI/AAAAAAAABrQ/cUoyZoITbtI/s400/2.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;The main MySQL&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Query Browser window&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;is divided up into&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;several sections:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="color: red;"&gt;o&lt;/span&gt; &lt;span style="color: red;"&gt;Query Toolbar&lt;/span&gt; -&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;The query toolbar&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;is where queries&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;can be created and&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;executed. It is&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;composed of three&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;navigation buttons&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;(Go Back, Next,&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Refresh), the query&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;area, two action&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;buttons (Execute&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;and Stop), and a&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;status indicator.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="color: red;"&gt;o Advanced&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="color: red;"&gt;Toolbar&lt;/span&gt; - The&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;advanced toolbar contains three sets of buttons: the Transaction Buttons (Start, Commit, Rollback), the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;query management buttons (Explain, Compare), and the query building buttons (Select, From, Where,&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;and so on.)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;• The Advanced Toolbar is only visible when the Show advanced toolbars and Show composer&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;buttons toolbar options in the Browser Options screen are checked.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="color: red;"&gt;o Results Area&lt;/span&gt; - All query results are displayed in the result area. Multiple tabs can be active at one&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;time, allowing multiple queries to be worked on. The result area can be split vertically and&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;horizontally for performing comparisons, and queries in different parts of a split result area can be&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;joined together for master-detail analysis.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="color: red;"&gt;o Object Browser&lt;/span&gt; - The object browser is part of the sidebar and allows for the management of the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;databases, bookmarks, and history. Databases and tables can be chosen to query, in addition to the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;ability to add commonly-used queries to a collection of bookmarks, and browse through previously&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;issued queries in order to use them again.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;If there are many schemata on your MySQL server, the search field with the magnifying glass&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;icon may be handy for filtering the schemata. Typing in t or T, for example, will set the filter to&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;schemata whose names begin with a t. The filter works in a case-insensitive fashion.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;Filter schemata can also use the wild card (?) to stand in for any single character and (*) for zero&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;to any number of characters. For example the string *boo?* will find schemata with the names&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;books, coursebooks, and bookings.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="color: red;"&gt;o Information Browser&lt;/span&gt; - The Information Browser is part of the sidebar and is used to look up built-in&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;functions, and to manage queries that contain parameters. One example of this is when establishing a&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;master-detail pair of queries. The data in the master query is available as parameters to the detail&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;query.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Using the View menu, most of these sections can be displayed and hidden by checking and unchecking the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;elements.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-1916722499389907799?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/1916722499389907799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/mysql-query-browser.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/1916722499389907799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/1916722499389907799'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/mysql-query-browser.html' title='MySQL Query Browser'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-Rj7gpkNZtbc/Tyj_ZWeHpHI/AAAAAAAABrI/Gr0jhxjZ004/s72-c/1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-5441691763580841125</id><published>2012-02-01T00:55:00.000-08:00</published><updated>2012-02-01T20:46:41.704-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Using mysql Interactively'/><category scheme='http://www.blogger.com/atom/ns#' term='MySQL server'/><category scheme='http://www.blogger.com/atom/ns#' term='The mysql Client'/><category scheme='http://www.blogger.com/atom/ns#' term='Statement Terminators'/><title type='text'>The mysql Client</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;The mysql Client&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; This section discusses mysql, a general-purpose client program for issuing queries and retrieving their&lt;br /&gt;results. It can be used interactively or in batch mode to read queries from a file.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;Using mysql Interactively&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The mysql client program enables the sending of queries to the MySQL server with any results being&lt;br /&gt;displayed in the same interface. It can be used interactively or it can read query input from a file in batch&lt;br /&gt;mode:&lt;br /&gt;&lt;br /&gt;• Interactive mode is useful for day-to-day usage, for quick one-time queries, and for testing how&lt;br /&gt;queries work.&lt;br /&gt;&lt;br /&gt;• Batch mode is useful for running queries that have been prewritten and stored in a file. It's&amp;nbsp;especially valuable for issuing a complex series of queries that's difficult to enter manually, or&amp;nbsp;queries that need to be run automatically by a job scheduler without user intervention.&amp;nbsp;MySQL statements such as the version query, shown below as executed within the mysql client, can also&amp;nbsp;be run from the shell command prompt as part of the mysql client startup;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;mysql&amp;gt; SELECT VERSION();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;+-----------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;| VERSION() &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;+-----------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;| 5.0.41-log &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;+-----------------+&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can execute a statement directly from the command line by using the -e or --execute option:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;shell&amp;gt; mysql -u user_name -ppassword -e "SELECT VERSION()"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;+-----------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;| VERSION() &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;+-----------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;| 5.0.41-log &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;+-----------------+&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;No statement terminator is necessary unless the string following -e consists of multiple statements. In that&amp;nbsp;case, separate the statements by semicolon characters.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;Statement Terminators&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;There are numerous terminators that can be used in the mysql client to end a statement. Two terminators&lt;br /&gt;are the semicolon character (';') and the \g sequence. They're equivalent and may be used&lt;br /&gt;interchangeably:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;mysql&amp;gt; SELECT VERSION(), DATABASE();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;+-----------------+--------------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;| VERSION() &amp;nbsp; &amp;nbsp; &amp;nbsp; | DATABASE() &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;+-----------------+--------------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;| 5.0.40-log | INFORMATION_SCHEMA |&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;+-----------------+--------------------+&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The \G sequence also terminates queries, but causes mysql to display query results in a vertical style that&lt;br /&gt;shows each output row with each column value on a separate line:&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; SELECT VERSION(), DATABASE()\G&lt;br /&gt;&lt;br /&gt;************************** 1. row **************************&lt;br /&gt;&lt;br /&gt;VERSION(): 5.0.40-log&lt;br /&gt;DATABASE(): INFORMATION_SCHEMA&lt;br /&gt;&lt;br /&gt;The \G terminator is especially useful if a query produces very wide output lines because vertical format&lt;br /&gt;can make the result much easier to read.&lt;br /&gt;&lt;br /&gt;The mysql client allows a single query to be entered using multiple input lines. This makes it easier to&lt;br /&gt;issue a long query because you can enter it over the course of several lines. mysql will wait until it sees&lt;br /&gt;the statement terminator before sending the query to the server to be executed. For example:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;mysql&amp;gt; SELECT TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;-&amp;gt; FROM INFORMATION_SCHEMA.TABLES&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;-&amp;gt; WHERE TABLE_NAME LIKE 'E%';&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp;+--------------------+-----------------+-----------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;| TABLE_SCHEMA | TABLE_NAME | TABLE_TYPE &amp;nbsp; |&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;+--------------------+-----------------+------------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;| information_schema | ENGINES &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| SYSTEM VIEW |&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;| information_schema | EVENTS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| SYSTEM VIEW |&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;| mysql &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| event &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | BASE TABLE &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;+--------------------+-----------------+------------------+&lt;/span&gt;&lt;br /&gt;3 rows in set (#.## sec)&lt;br /&gt;&lt;br /&gt;In the preceding example, mysql changes the prompt from mysql&amp;gt; to -&amp;gt; to provide feedback that it's&amp;nbsp;still waiting to see the end of the statement.&lt;br /&gt;&lt;br /&gt;If a statement results in an error, mysql displays the following error message:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;mysql&amp;gt; This is an invalid statement;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;ERROR 1064 (42000): You have an error in your SQL syntax.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If it is necessary to cancel a statement once mysql has already received some of the input, enter \c and&lt;br /&gt;&lt;br /&gt;mysql will cancel the statement and return the mysql&amp;gt; prompt:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;mysql&amp;gt; SELECT * FROM INFORMATION_SCHEMA &amp;gt; WHERE \c&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;mysql&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To quit mysql, use \q, QUIT, or EXIT: mysql&amp;gt; \q&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-5441691763580841125?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/5441691763580841125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/02/mysql-client.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/5441691763580841125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/5441691763580841125'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/02/mysql-client.html' title='The mysql Client'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-7405574595635146824</id><published>2012-01-31T23:24:00.000-08:00</published><updated>2012-02-01T20:46:36.317-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Parser'/><category scheme='http://www.blogger.com/atom/ns#' term='Storage Engine Tier'/><title type='text'>SQL Parser and Storage Engine Tier</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A client retrieves data from tables or changes data in tables by sending requests to the server in the form of&amp;nbsp;SQL statements. The server executes each statement using a two-tier processing model:&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;• The upper tier includes the SQL parser and optimizer.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;• The lower tier comprises a set of storage engines.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For the most part, the SQL tier is free of dependencies on which the storage engine manages any given&amp;nbsp;table. This means that clients normally need not be concerned about which engines are involved in&amp;nbsp;processing SQL statements, and can access and manipulate tables using statements that are the same no&amp;nbsp;matter which engine manages them. Exceptions to this engine-independence of SQL statements include the&amp;nbsp;following:&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;• CREATE TABLE has an ENGINE option that enables you to specify which storage engine to use&amp;nbsp;on a per-table basis. ALTER TABLE has an ENGINE option that enables you to convert a table to&amp;nbsp;use a different storage engine.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;• Some index types are available only for particular storage engines. For example, only the MyISAM&amp;nbsp;engine supports full-text or spatial indexes.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;• COMMIT and ROLLBACK have an effect only for tables managed by transactional storage engines&amp;nbsp;such as InnoDB.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-7405574595635146824?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/7405574595635146824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/sql-parser-and-storage-engine-tier.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/7405574595635146824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/7405574595635146824'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/sql-parser-and-storage-engine-tier.html' title='SQL Parser and Storage Engine Tier'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-633495451633840128</id><published>2012-01-31T23:19:00.000-08:00</published><updated>2012-01-31T23:19:26.146-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql architecture'/><category scheme='http://www.blogger.com/atom/ns#' term='client server architecture'/><category scheme='http://www.blogger.com/atom/ns#' term='MySQL General Architecture'/><title type='text'>MySQL General Architecture</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MySQL operates in a networked environment using a client/server architecture. In other words, a central&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;program acts as a server, and various client programs connect to the server to make requests. A MySQL&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;installation has the following major components: MySQL Server, Client programs and MySQL non client&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;utilities.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;MySQL Server&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;MySQL Server, or mysqld, is the database server program. The server manages access to the actual&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;database (schema) on disk and in memory. MySQL Server is multi-threaded and supports many&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;simultaneous client connections. Clients can connect via several connection protocols. For managing&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;database contents, the MySQL server features a modular architecture that supports multiple storage engines&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;that handle different types of tables (for example, it supports both transactional and non-transactional&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;tables).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Keep in mind the difference between a server and a host. The server is software (the MySQL server&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;program mysqld). Server characteristics include its version number, whether certain features are included&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;or excluded, and so forth. The host is the physical machine on which the server program runs. Host&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;characteristics include its hardware configuration, the operating system running on the machine, its network&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;addresses, and so forth.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;Client Programs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;These are programs that are used for communicating with the server to manipulate the databases that are&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;managed by the server. MySQL AB provides several client programs. The following list describes a few&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;of them:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;MySQL Query Browser and MySQL Administrator are graphical interfaces to the server.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;mysql is a command-line program that acts as a text-based front end for the server. It's used&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;for issuing queries and viewing the results interactively from a terminal window.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Other command-line clients include mysql import for importing data files, mysqldump for&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;making backups, mysql admin for server administration, and mysqlcheck for checking the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;integrity of the database files.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;MySQL Client/Server Model&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-NwQlnP6V5G4/TyjmYTmIKWI/AAAAAAAABq4/NQJJ6h6FKOg/s1600/MySQL+Client+Server+Model.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="352" src="http://3.bp.blogspot.com/-NwQlnP6V5G4/TyjmYTmIKWI/AAAAAAAABq4/NQJJ6h6FKOg/s640/MySQL+Client+Server+Model.JPG" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;div&gt;MySQL runs on many varieties of Windows, Unix, and Linux, but client/server communication is not&amp;nbsp;limited to environments where all computers run the same operating system. Client programs can connect&amp;nbsp;to a server running on the same host or a different host, and the client and server host need not have the&amp;nbsp;same operating system. For example, client programs can be used on Windows to connect to a server that&amp;nbsp;is running on Linux.&amp;nbsp;Most of the concepts discussed here apply universally to any system on which MySQL runs. Platformspecific&lt;/div&gt;&lt;div&gt;information is so indicated. Unless otherwise specified, “Unix” as used here includes Linux and&lt;/div&gt;&lt;div&gt;other Unix-like operating systems&lt;span style="color: red;"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-633495451633840128?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/633495451633840128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/mysql-general-architecture.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/633495451633840128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/633495451633840128'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/mysql-general-architecture.html' title='MySQL General Architecture'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-NwQlnP6V5G4/TyjmYTmIKWI/AAAAAAAABq4/NQJJ6h6FKOg/s72-c/MySQL+Client+Server+Model.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-3395914246695393078</id><published>2012-01-31T21:44:00.000-08:00</published><updated>2012-02-01T00:56:56.321-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql foundation'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL FOUNDATIONS'/><title type='text'>MYSQL FOUNDATIONS</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b style="background-color: white; color: #222222; font-size: 12px; line-height: 18px;"&gt;MySQL server&lt;/b&gt;&lt;span style="background-color: white; color: #222222; font-size: 12px; line-height: 18px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br style="background-color: white; color: #222222; font-size: 12px; line-height: 18px;" /&gt;&lt;br style="background-color: white; color: #222222; font-size: 12px; line-height: 18px;" /&gt;&lt;b style="background-color: white; color: #222222; font-size: 12px; line-height: 18px;"&gt;What is the MySQL Server?&lt;/b&gt;&lt;span style="background-color: white; color: #222222; font-size: 12px; line-height: 18px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="background-color: white; color: #222222; font-size: 12px; line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;MySQL is a relational database that can be used to store dynamic Web page data for services such as online catalogs and stores, create accounting databases, and create address books. MySQL is an advanced feature for users that are familiar with databases and SQL (structured query language). For more information, go to&amp;nbsp;&lt;a href="http://www.mysql.com/" style="color: #105cb6; text-decoration: none;" target="_blank"&gt;&lt;u&gt;http://www.mysql.com&lt;/u&gt;&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #222222; font-size: 12px; line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;If the MySQL server is enabled, users on the internal network can access personal databases and the databases of any teams to which they belong. User and team databases are automatically created when user and team accounts are set up.&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #222222; font-size: 12px; line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #222222; font-size: 12px; line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #222222; font-size: 12px; line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #222222; font-size: 12px; line-height: 1.3; margin-top: 5px;"&gt;&lt;/div&gt;&lt;div style="line-height: 1.3; margin-top: 5px;"&gt;&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Setting up Windows for MySQL Access&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;You can use Microsoft&lt;sup&gt;(R)&lt;/sup&gt;&amp;nbsp;Access to access and manage database tables.&lt;br /&gt;1. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;You first have to download the MySQL ODBC (Open Database Connectivity)&lt;br /&gt;connector. You can download this at&amp;nbsp;&lt;a href="http://dev.mysql.com/downloads/connector/" style="color: #105cb6; text-decoration: none;" target="_blank"&gt;&lt;u&gt;http://dev.mysql.com/downloads/connector/&lt;/u&gt;&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;2. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;On the page that is displayed, click the link for the&amp;nbsp;&lt;b&gt;Connector/ODBC&lt;/b&gt;. Ensure you are downloading the most recent stable release.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;3. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;From the Windows downloads section of the screen that displays, click the download link for Windows or Windows x64.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;4. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;On the screen that is displayed, select the nearest server to download from.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;5. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In the window that is displayed, select the download location where you want to save the mysql-connector-odbc file. This set of steps assumes that it is saved to the desktop.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;6. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Double-click the icon on your desktop and click&amp;nbsp;&lt;b&gt;Run&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;7. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The Microsoft ODBC Setup screen is displayed. Click&amp;nbsp;&lt;b&gt;Continue&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;8. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Select MySQL from the Available ODBC Drivers list. Click&amp;nbsp;&lt;b&gt;OK&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;9. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For Windows XP and later, click&amp;nbsp;&lt;b&gt;Start&lt;/b&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;b&gt;Settings&lt;/b&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;b&gt;Control Panel&lt;/b&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;b&gt;Administrative&lt;br /&gt;Tools&lt;/b&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;b&gt;Data Sources (ODBC)&lt;/b&gt;. For previous versions of Windows, click&amp;nbsp;&lt;b&gt;Start&lt;/b&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;b&gt;Settings&lt;/b&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;b&gt;Control Panel&lt;/b&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;b&gt;ODBC Data Source&lt;/b&gt;. The ODBC Data Source Administrator screen is displayed.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;10. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Click&amp;nbsp;&lt;b&gt;Add...&lt;/b&gt;. The Create New Data Source screen is displayed.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;11. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Select MySQL from the list. Click&amp;nbsp;&lt;b&gt;Finish&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.3; margin-top: 5px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;12. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Provide the following information: &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;ul style="line-height: 18px;"&gt;&lt;li style="font-size: 1em; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;a Windows DSN Name (such as MySQL Address Book)&lt;/span&gt;&lt;/li&gt;&lt;li style="font-size: 1em; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;your Lotus Foundations server's host name or IP address&lt;/span&gt;&lt;/li&gt;&lt;li style="font-size: 1em; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;your MySQL database name, user name, and password.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: 18px;"&gt;13. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Click&amp;nbsp;&lt;/span&gt;&lt;b style="line-height: 18px;"&gt;OK&lt;/b&gt;&lt;span style="line-height: 18px;"&gt;&amp;nbsp;on this screen and then on the ODBC Data Source Administrator screen.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br style="line-height: 18px;" /&gt;&lt;span style="line-height: 18px;"&gt;14. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Open Microsoft Access.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br style="line-height: 18px;" /&gt;&lt;span style="line-height: 18px;"&gt;15. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Create a database named address book.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br style="line-height: 18px;" /&gt;&lt;span style="line-height: 18px;"&gt;16. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Anywhere in this window, right-click your mouse. Select&amp;nbsp;&lt;/span&gt;&lt;b style="line-height: 18px;"&gt;Link Tables&lt;/b&gt;&lt;span style="line-height: 18px;"&gt;.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br style="line-height: 18px;" /&gt;&lt;span style="line-height: 18px;"&gt;17. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In the Files of Type section of the screen that is displayed, select ODBC Databases.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: 18px;"&gt;The Select Data Source screen is displayed.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br style="line-height: 18px;" /&gt;&lt;span style="line-height: 18px;"&gt;18. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Select the Machine Data Source tab and select MySQL Address Book. The Link Tables screen is displayed.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br style="line-height: 18px;" /&gt;&lt;span style="line-height: 18px;"&gt;19. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Select the appropriate table, then click&amp;nbsp;&lt;/span&gt;&lt;b style="line-height: 18px;"&gt;OK&lt;/b&gt;&lt;span style="line-height: 18px;"&gt;.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br style="line-height: 18px;" /&gt;&lt;span style="line-height: 18px;"&gt;20. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Make sure that the appropriate table is highlighted and click&amp;nbsp;&lt;/span&gt;&lt;b style="line-height: 18px;"&gt;OK&lt;/b&gt;&lt;span style="line-height: 18px;"&gt;. The table opens in Microsoft Access.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-3395914246695393078?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/3395914246695393078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/mysql-foundations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/3395914246695393078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/3395914246695393078'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/mysql-foundations.html' title='MYSQL FOUNDATIONS'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-6322181921973055134</id><published>2012-01-28T07:14:00.000-08:00</published><updated>2012-01-28T07:14:55.288-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='user defined function'/><category scheme='http://www.blogger.com/atom/ns#' term='php user defined function'/><category scheme='http://www.blogger.com/atom/ns#' term='user defined function in php'/><title type='text'>PHP User Defined Functions</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PHP is packed full with many useful built-in functions, such as print() and mysql_query(), which meet a&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;variety of needs. However, there will be times when a non-standard function would best meet the needs of&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;the application that is being built. &amp;nbsp;This is where user defined functions come in handy. &amp;nbsp;The programmer&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;can of course write the same piece of code over and over again in their applications to produce the result or&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;they can create a user defined function that can be reused over and over again. &amp;nbsp;This is the primary&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;advantage of custom functions.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The actual code associated with built-in functions &amp;nbsp;consists of the keyword function followed by the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;function name. &amp;nbsp;Next comes the parentheses, which may contain variable names, and the actual function&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;code itself, enclosed in curly braces:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;function function_name () {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; -- Statements that make up the function code&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The following examples demonstrate some of the uses and capabilities for creating a user defined function:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; function hello ($i) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo "Hello $i!";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; hello('world'); // This would print "Hello world!"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; function ctable ($i='Test', $b=1, $p=1, $s=1) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print "&amp;lt;table border=$b, cellpadding=$p cellspacing=$s&amp;gt;";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;$i&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; ctable(); /* Would create a HTML table with the word Test in &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;the cell and with the default table structures */&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; ctable('Hello World!', 2, 3, 3); /* The defaults would be &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;overwritten with the &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; values entered */&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The first example displays a typical function that has a value that is entered ($i) and then used within the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;function itself. &amp;nbsp;The second example displays how a programmer can assign a default value to be associated&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;with the values to be read. This is eliminates &amp;nbsp;any problems with a function called not having all the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;required values necessary to execute properly. &amp;nbsp;In addition, to having information sent into a function, it is&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;also possible to have a value returned:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; function circumference ($diameter) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $c = $diameter * pi();&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return(printf("%01.2f",$c));&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; circumference(3); // This would return 9.4&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-6322181921973055134?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/6322181921973055134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/php-user-defined-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/6322181921973055134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/6322181921973055134'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/php-user-defined-functions.html' title='PHP User Defined Functions'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-3362019104734340167</id><published>2012-01-27T01:09:00.000-08:00</published><updated>2012-01-27T01:09:50.358-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php control flow'/><category scheme='http://www.blogger.com/atom/ns#' term='continue statement in php'/><category scheme='http://www.blogger.com/atom/ns#' term='Break and Continue in php'/><category scheme='http://www.blogger.com/atom/ns#' term='php Break and Continue'/><category scheme='http://www.blogger.com/atom/ns#' term='break statement in php'/><title type='text'>PHP Break and Continue</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; With iterative control statements, PHP provides two means of manually interrupting the flow of the loops.&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;These two commands include break (which has already been used in examples up to this point) and&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;continue. &amp;nbsp;The following example demonstrates how these two loop interrupts can be used in iterative&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;control statements:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;lt;?php&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; for ($test=1; $test &amp;lt; 10; $test = $test + 1) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($test==3) continue;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($test==6) break;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo "The test number is $test&amp;lt;br&amp;gt;";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The following output would be displayed when this PHP script was run:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;The test number is 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;The test number is 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;The test number is 4&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;The test number is 5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; When the &amp;nbsp;$test variable was equal to 3, the script skipped the remain code and performed the next&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;iteration of the for function. &amp;nbsp;This resulted in the number 3 not being printed. In addition, when the $test&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;variable was equal to 6, the break function ended the for function thus resulting in the remainder of the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;script being missed resulting in the number 6 not being printed.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-3362019104734340167?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/3362019104734340167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/php-break-and-continue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/3362019104734340167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/3362019104734340167'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/php-break-and-continue.html' title='PHP Break and Continue'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-3996832060041781285</id><published>2012-01-26T10:10:00.000-08:00</published><updated>2012-01-26T10:16:30.831-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php for statement'/><category scheme='http://www.blogger.com/atom/ns#' term='php control flow'/><category scheme='http://www.blogger.com/atom/ns#' term='for statement'/><title type='text'>PHP FOR STATEMENT</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;FOR&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The for function is the more complex sibling of the while function and provides a more streamline and&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;complex looping mechanism. &amp;nbsp;The for function takes three expressions; the first expression is evaluated&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;by default at the first iteration of the loop, the second expression is evaluated at the beginning of each&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;iteration (and determines if the loop will continue) and the third expression is evaluated at the conclusion of&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;each loop. &amp;nbsp;Any of the expressions can be empty and the logic that would take place in the expression can&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;be substituted in the body of the function itself. &amp;nbsp;The statement list within the for code body can consist of&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;one or more statements.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: #0b5394;"&gt;for (expression1; expression2; expression3)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: #0b5394;"&gt;{&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; -- statements that execute while the expressions evaluates false&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The following examples demonstrate how the for iterative control statement can work:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; for ($ctemp = 0; $ctemp &amp;lt;= 20; $ctemp = $ctemp + 1) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ftemp = 32 + $ctemp / 5 * 9;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo "$ctemp -&amp;gt; $ftemp&amp;lt;br&amp;gt;";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; for ($ctemp = 0; ; $ctemp = $ctemp + 1) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ftemp = 32 + $ctemp / 5 * 9;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo "$ctemp -&amp;gt; $ftemp&amp;lt;br&amp;gt;";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($ctemp &amp;gt;= 20) break;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; $ctemp = 0;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; for (;;) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ftemp = 32 + $ctemp / 5 * 9;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo "$ctemp -&amp;gt; $ftemp&amp;lt;br&amp;gt;";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($ctemp &amp;gt;= 20) break;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ctemp = $ctemp + 1;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;FOREACH&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The foreach function is the iterative control statement that is designed specifically for handling arrays&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;(and objects as of PHP 5). There are two ways of using the foreach iterative control statement. &amp;nbsp;The first&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;ways is by looping over the array given by the array_expression and assigning the current array&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;element to the $value variable. &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;foreach (array_expression as $value) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; -- statements that execute until the array reaches the end or a &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;manual break is inserted&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The second way of using the foreach function is similar to the first, except the element value is assigned&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;to a $key variable.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;foreach (array_expression as $key =&amp;gt; $value) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; -- statements that execute until the array reaches the end or a &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;manual break is inserted&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Each time the foreach command is initiated, the internal pointer to the array is reset and each iteration&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;advances the pointer one element. &amp;nbsp;The following examples demonstrate how the &amp;nbsp;foreach iterative&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;control statement can work:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; $last_name = array("Smith", "Jones", "Sanchez", "Green");&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; foreach ($last_name as $individual) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print "Last Name = $individual&amp;lt;br&amp;gt;";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; $wk_temp = array(&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Sunday' =&amp;gt; 13,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Monday' =&amp;gt; 12,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Tuesday' =&amp;gt; 11,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Wednesday' =&amp;gt; 13,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Thursday' =&amp;gt; 15,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Friday' =&amp;gt; 17,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Saturday' =&amp;gt; 9);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; $wk_avg = 0;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; foreach($wk_temp as $day =&amp;gt; $temp) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo "$day = $temp&amp;lt;br&amp;gt;";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $wk_avg = $wk_avg + $temp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; $wk_avg = $wk_avg / 7;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; echo "The average temperature for the week was $wk_avg";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-3996832060041781285?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/3996832060041781285/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/php-for-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/3996832060041781285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/3996832060041781285'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/php-for-statement.html' title='PHP FOR STATEMENT'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-7963362595826232129</id><published>2012-01-20T01:26:00.000-08:00</published><updated>2012-01-21T07:21:26.246-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='while in php'/><category scheme='http://www.blogger.com/atom/ns#' term='do while in php'/><category scheme='http://www.blogger.com/atom/ns#' term='php while'/><category scheme='http://www.blogger.com/atom/ns#' term='how to implement while in php'/><title type='text'>PHP Control Flow (while)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="color: red; font-size: large;"&gt;While &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The&amp;nbsp; while function is the simplest of all the iterative control statements.&amp;nbsp; The statement list within a &lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;while statement is repeated as long as the condition evaluated has not been met.&amp;nbsp; The statement list within &lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;the while code body can consist of one or more statements. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;while (expression)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -- statements that execute while the expression evaluates false &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;} &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;It is a best practice to build error detecting logic into any iterative control statement.&amp;nbsp; This error control &lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;logic should be built in such a way as to detect an infinite loop. In the following example, simple logic has &lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;been built into a while function to detect an infinite loop error: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;&amp;lt;?php &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $i = 5; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while ($i &amp;lt; 5) { &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo '$i &amp;lt;br&amp;gt;'; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $i = $i++; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($i &amp;gt; 20000) { // Break when &amp;gt; 20,000 repititions &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;?&amp;gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #cc0000; font-size: large;"&gt;Do ... While &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The do ... while function is based on the while iterative control statement with the difference being &lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;the condition is evaluated at the end of the statement execution versus at the beginning.&amp;nbsp; The statement list &lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;within a do ... while function is repeated as long as the condition evaluated has not been met.&amp;nbsp; The &lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;statement list within the do ... while code body can consist of one or more statements. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;do { &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -- statements that execute while the expression evaluates false &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and then it iterates through the statements one more time &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;} while (expression); &lt;/span&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;A do ... while statement will always be guaranteed to run through the statements contained at least &lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;once.&amp;nbsp; The following example demonstrates how a do ... while statement works: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;lt;?php &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $i = 10; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do { &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo $i * $i; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $i = $i+; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } while ($i &amp;lt; 5); &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;/* The number 100 will be displayed, even though 10 is not less than &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;5. If this was a while statement, the statements would not have run &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;at all */ &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-family: Arial,Helvetica,sans-serif;"&gt;?&amp;gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-7963362595826232129?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/7963362595826232129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/php-control-flow-while.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/7963362595826232129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/7963362595826232129'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/php-control-flow-while.html' title='PHP Control Flow (while)'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-563121219162123388</id><published>2012-01-13T05:55:00.000-08:00</published><updated>2012-01-13T23:38:59.777-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php data types'/><category scheme='http://www.blogger.com/atom/ns#' term='data types in php'/><title type='text'>PHP Data Types</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp;A data type identifies the characteristics that the assigned data will be interpreted by when interacting&amp;nbsp;with the&amp;nbsp;PHP programming language. &amp;nbsp;When a value is assigned a specific data type, &amp;nbsp;the PHP interpreter&amp;nbsp;will work&amp;nbsp;with the data based on the expected type of data it is. &amp;nbsp;For example, 27654 could be considered&amp;nbsp;a numeric&amp;nbsp;data type or it could be considered a string data type, such as in the zip code for a customer. &amp;nbsp;Even though&amp;nbsp;you could perform mathematical equations on the zip code, it would make no sense to do so. &amp;nbsp;Thus,zip codes, even though they look like they would be numeric numbers should be identified as a string data&amp;nbsp;type to eliminate problems such as zip codes that start with zero (ex. 08102). &amp;nbsp;Assigning the correct data&amp;nbsp;type to the expected value is an important part of working with PHP. &amp;nbsp;There are three categories of data&amp;nbsp;types in PHP: Scalar, Compound and Special.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="simpara" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;PHP supports eight primitive types.&lt;/div&gt;&lt;div class="simpara" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;span style="color: red;"&gt;Four scalar types:&lt;/span&gt;&lt;/div&gt;&lt;ul class="itemizedlist" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"&gt;&lt;span class="simpara"&gt;&lt;span class="type"&gt;boolean&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"&gt;&lt;span class="simpara"&gt;&lt;span class="type"&gt;integer&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"&gt;&lt;span class="simpara"&gt;&lt;span class="type"&gt;float&lt;/span&gt;&amp;nbsp;(floating-point number, aka&amp;nbsp;&lt;span class="type"&gt;double&lt;/span&gt;)&lt;/span&gt;&lt;/li&gt;&lt;li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"&gt;&lt;span class="simpara"&gt;&lt;span class="type"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;span style="color: red;"&gt;Two compound types:&lt;/span&gt;&lt;/div&gt;&lt;ul class="itemizedlist" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"&gt;&lt;span class="simpara"&gt;&lt;span class="type"&gt;array&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"&gt;&lt;span class="simpara"&gt;&lt;span class="type"&gt;object&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;span style="color: red;"&gt;And finally two special types:&lt;/span&gt;&lt;/div&gt;&lt;ul class="itemizedlist" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"&gt;&lt;span class="simpara"&gt;&lt;span class="type"&gt;resource&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"&gt;&lt;span class="simpara"&gt;&lt;span class="type"&gt;NULL&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: -webkit-auto;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;&amp;lt;?php&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: -webkit-auto;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;&lt;br /&gt;$a_bool&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;TRUE&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;&lt;span style="color: #e69138;"&gt;//&amp;nbsp;a&amp;nbsp;boolean&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;$a_str&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;"foo"&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;&lt;span style="color: #e69138;"&gt;//&amp;nbsp;a&amp;nbsp;string&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;$a_str2&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;'foo'&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;&lt;span style="color: #f1c232;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;&lt;span style="color: #e69138;"&gt;//&amp;nbsp;a&amp;nbsp;string&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;$an_int&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;12&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;&lt;span style="color: #e69138;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;&lt;span style="color: #e69138;"&gt;//&amp;nbsp;an&amp;nbsp;integer&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;echo&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;gettype&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;(&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;$a_bool&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;);&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;&lt;span style="color: #e69138;"&gt;//&amp;nbsp;prints&amp;nbsp;out:&amp;nbsp;&amp;nbsp;boolean&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;echo&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;gettype&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;(&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;$a_str&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;&lt;span style="color: #e69138;"&gt;//&amp;nbsp;prints&amp;nbsp;out:&amp;nbsp;&amp;nbsp;string&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #e69138;"&gt;//&amp;nbsp;If&amp;nbsp;this&amp;nbsp;is&amp;nbsp;an&amp;nbsp;integer,&amp;nbsp;increment&amp;nbsp;it&amp;nbsp;by&amp;nbsp;four&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;if&amp;nbsp;(&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;is_int&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;(&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;$an_int&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;))&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;$an_int&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;+=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;4&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;;&lt;br /&gt;}&lt;/span&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;&lt;span style="color: #e69138;"&gt;//&amp;nbsp;If&amp;nbsp;$a_bool&amp;nbsp;is&amp;nbsp;a&amp;nbsp;string,&amp;nbsp;print&amp;nbsp;it&amp;nbsp;out&lt;br /&gt;//&amp;nbsp;(does&amp;nbsp;not&amp;nbsp;print&amp;nbsp;out&amp;nbsp;anything)&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;if&amp;nbsp;(&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;is_string&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;(&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;$a_bool&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;))&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;"String:&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;$a_bool&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;"&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;;&lt;br /&gt;}&lt;/span&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: -webkit-auto;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0b5394; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: -webkit-auto;"&gt;&lt;span style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="color: #741b47; font-size: large;"&gt;Scalar types&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: -webkit-auto;"&gt;&lt;h2 class="title" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 17px;"&gt;&lt;span style="color: red;"&gt;Booleans&lt;/span&gt;&lt;/h2&gt;&lt;div class="simpara" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;This is the simplest type. A&amp;nbsp;&lt;span class="type"&gt;boolean&lt;/span&gt;&amp;nbsp;expresses a truth value. It can be either&amp;nbsp;&lt;b&gt;&lt;tt style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;TRUE&lt;/tt&gt;&lt;/b&gt;&amp;nbsp;or&amp;nbsp;&lt;b&gt;&lt;tt style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;FALSE&lt;/tt&gt;&lt;/b&gt;.&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: -webkit-auto;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: -webkit-auto;"&gt;&lt;h3 class="title" style="background-color: white; color: #000066; font-family: verdana, arial, helvetica, sans-serif; font-size: 15px;"&gt;Syntax&lt;/h3&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;To specify a&amp;nbsp;&lt;span class="type"&gt;boolean&lt;/span&gt;&amp;nbsp;literal, use the keywords&amp;nbsp;&lt;b&gt;&lt;tt style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;TRUE&lt;/tt&gt;&lt;/b&gt;&amp;nbsp;or&amp;nbsp;&lt;b&gt;&lt;tt style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;FALSE&lt;/tt&gt;&lt;/b&gt;. Both are case-insensitive.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="para" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 14px;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;&amp;lt;?php&lt;br /&gt;$foo&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;True&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #ff8000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;//&amp;nbsp;assign&amp;nbsp;the&amp;nbsp;value&amp;nbsp;TRUE&amp;nbsp;to&amp;nbsp;$foo&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;h2 class="title" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 17px; text-align: -webkit-auto;"&gt;&lt;span style="color: red;"&gt;Integers&lt;/span&gt;&lt;/h2&gt;&lt;div class="simpara" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; An&amp;nbsp;&lt;span class="type"&gt;integer&lt;/span&gt;&amp;nbsp;is a number of the set ℤ = {..., -2, -1, 0, 1, 2, ...}.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="sect2" id="language.types.integer.syntax" style="text-align: -webkit-auto;"&gt;&lt;h3 class="title" style="background-color: transparent; color: #000066; font-family: verdana, arial, helvetica, sans-serif; font-size: 15px;"&gt;Syntax&lt;/h3&gt;&lt;div class="simpara" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: justify;"&gt;&lt;span class="type"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Integer&lt;/span&gt;s can be specified in decimal (base 10), hexadecimal (base 16), octal (base 8) or binary (base 2) notation, optionally preceded by a sign (- or +).&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: justify;"&gt;Binary&amp;nbsp;&lt;span class="type"&gt;integer&lt;/span&gt;&amp;nbsp;literals are available since PHP 5.4.0.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: justify;"&gt;To use octal notation, precede the number with a&amp;nbsp;&lt;i&gt;0&lt;/i&gt;&amp;nbsp;(zero). To use hexadecimal notation precede the number with&amp;nbsp;&lt;i&gt;0x&lt;/i&gt;. To use binary notation precede the number with&amp;nbsp;&lt;i&gt;0b&lt;/i&gt;.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="para" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: justify;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;&amp;lt;?php&lt;br /&gt;$a&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;1234&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #ff8000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;//&amp;nbsp;decimal&amp;nbsp;number&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;$a&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;=&amp;nbsp;-&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;123&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #ff8000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;//&amp;nbsp;a&amp;nbsp;negative&amp;nbsp;number&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;$a&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;0123&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #ff8000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;//&amp;nbsp;octal&amp;nbsp;number&amp;nbsp;(equivalent&amp;nbsp;to&amp;nbsp;83&amp;nbsp;decimal)&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;$a&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;0x1A&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #ff8000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;//&amp;nbsp;hexadecimal&amp;nbsp;number&amp;nbsp;(equivalent&amp;nbsp;to&amp;nbsp;26&amp;nbsp;decimal)&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: justify;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="text-align: justify;"&gt;&lt;span style="text-align: left;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: justify;"&gt;The maximum number that can be assigned to an integer is based on the system. 32 bit systems&amp;nbsp;have a maximum signed integer range of -2147483648 to 2147483647. The maximum signed&amp;nbsp;integer value for 64 bit systems is 9223372036854775807.Any value that exceeds the maximum&amp;nbsp;integer size will be assigned the float data type&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="para" style="text-align: justify;"&gt;&lt;/div&gt;&lt;h2 class="title" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 17px; text-align: -webkit-auto;"&gt;&lt;span style="color: red;"&gt;Float&lt;/span&gt;&lt;/h2&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;Floating point numbers (also known as "floats", "doubles", or "real numbers") can be specified using any of the following syntaxes:&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="para" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;&amp;lt;?php&lt;br /&gt;$a&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;1.234&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;$b&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;1.2e3&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;$c&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;7E-10&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="text-align: -webkit-auto;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="text-align: left;"&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="font-size: 14px; text-align: justify;"&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;The size of a floating point number is dependent by the system being used. In addition, floating&amp;nbsp;point numbers are not as accurate as integer numbers when it comes to precision. &amp;nbsp;Even simple&amp;nbsp;numbers like 0.2 and 0.17 can not be converted into their binary equivalents without a loss of&amp;nbsp;precision. With that said, floating point numbers should never be used in comparison operations&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="font-size: 14px; text-align: justify;"&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;without building in logic such as rounding numbers prior to the comparison operation or using a&amp;nbsp;tolerance value that would be an acceptable &amp;nbsp;difference between the compared values for&amp;nbsp;comparison operations.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="font-size: 14px; text-align: justify;"&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="font-size: 14px; text-align: justify;"&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="font-size: 14px; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="para" style="font-size: 14px; text-align: justify;"&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 class="title" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 17px; text-align: -webkit-auto;"&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;&lt;span style="color: red;"&gt;Strings&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;&amp;nbsp;A string data type is a series of characters that are associated with each other in a defined&amp;nbsp;order. &amp;nbsp;There is no limit to the length of a string data value. &amp;nbsp;The following represent some of the&amp;nbsp;values that can be assigned to a string data type:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="para" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="para"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;&amp;lt;?php&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;echo&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;'this&amp;nbsp;is&amp;nbsp;a&amp;nbsp;simple&amp;nbsp;string'&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;;&lt;br /&gt;&lt;br /&gt;echo&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;'You&amp;nbsp;can&amp;nbsp;also&amp;nbsp;have&amp;nbsp;embedded&amp;nbsp;newlines&amp;nbsp;in&lt;br /&gt;strings&amp;nbsp;this&amp;nbsp;way&amp;nbsp;as&amp;nbsp;it&amp;nbsp;is&lt;br /&gt;okay&amp;nbsp;to&amp;nbsp;do'&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;;&lt;/span&gt;&lt;span style="color: #ff8000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;//&amp;nbsp;Outputs:&amp;nbsp;Arnold&amp;nbsp;once&amp;nbsp;said:&amp;nbsp;"I'll&amp;nbsp;be&amp;nbsp;back"&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;echo&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;'Arnold&amp;nbsp;once&amp;nbsp;said:&amp;nbsp;"I\'ll&amp;nbsp;be&amp;nbsp;back"'&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;;&lt;/span&gt;&lt;span style="color: #ff8000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;//&amp;nbsp;Outputs:&amp;nbsp;You&amp;nbsp;deleted&amp;nbsp;C:\*.*?&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;echo&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;'You&amp;nbsp;deleted&amp;nbsp;C:\\*.*?'&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;;&lt;/span&gt;&lt;span style="color: #ff8000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;//&amp;nbsp;Outputs:&amp;nbsp;You&amp;nbsp;deleted&amp;nbsp;C:\*.*?&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;echo&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;'You&amp;nbsp;deleted&amp;nbsp;C:\*.*?'&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;;&lt;/span&gt;&lt;span style="color: #ff8000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;//&amp;nbsp;Outputs:&amp;nbsp;This&amp;nbsp;will&amp;nbsp;not&amp;nbsp;expand:&amp;nbsp;\n&amp;nbsp;a&amp;nbsp;newline&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;echo&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;'This&amp;nbsp;will&amp;nbsp;not&amp;nbsp;expand:&amp;nbsp;\n&amp;nbsp;a&amp;nbsp;newline'&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;;&lt;/span&gt;&lt;span style="color: #ff8000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;//&amp;nbsp;Outputs:&amp;nbsp;Variables&amp;nbsp;do&amp;nbsp;not&amp;nbsp;$expand&amp;nbsp;$either&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;echo&amp;nbsp;&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;'Variables&amp;nbsp;do&amp;nbsp;not&amp;nbsp;$expand&amp;nbsp;$either'&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14px; text-align: left;"&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para"&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para"&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;&lt;span style="font-size: 14px;"&gt;The characters that can be used in PHP string data types are limited to the ISO 8859-1 or Latin-1&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 14px;"&gt;character set. &amp;nbsp;This character set allows for 256 (the size of a byte) different possible characters&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 14px;"&gt;(191 of them that are actually printable); however, there is support in PHP to encode strings to the&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 14px;"&gt;UTF-8 standard (UTF-8 is a standard mechanism used by Unicode for encoding wide character&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 14px;"&gt;values into a byte stream).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="para" style="font-size: 14px; text-align: justify;"&gt;&lt;span style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="text-align: justify;"&gt;&lt;span style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; text-align: -webkit-auto;"&gt;&lt;b&gt;&lt;span style="color: #741b47; font-size: large;"&gt;Compound types:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="text-align: justify;"&gt;&lt;span style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; text-align: -webkit-auto;"&gt;&lt;b&gt;&lt;span style="color: #741b47; font-size: large;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small; text-align: -webkit-auto;"&gt;A compound data type allows for multiple values to be associated with a single entity. The primary&amp;nbsp;&lt;/span&gt;&lt;span style="text-align: -webkit-auto;"&gt;&lt;span style="font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;purpose&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small; text-align: -webkit-auto;"&gt;of a compound data type is to act as containers for other kinds of data. &amp;nbsp;In PHP, there are two types of data&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small; text-align: -webkit-auto;"&gt;types that fall under into this category.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="text-align: justify;"&gt;&lt;span style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="text-align: justify;"&gt;&lt;/div&gt;&lt;h2 class="title" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 17px; text-align: -webkit-auto;"&gt;&lt;span style="color: red;"&gt;Arrays&lt;/span&gt;&lt;/h2&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;An&amp;nbsp;&lt;span class="type"&gt;array&lt;/span&gt;&amp;nbsp;in PHP is actually an ordered map. A map is a type that associates&amp;nbsp;&lt;em class="emphasis" style="font-weight: bold;"&gt;values&lt;/em&gt;&amp;nbsp;to&amp;nbsp;&lt;em class="emphasis" style="font-weight: bold;"&gt;keys&lt;/em&gt;. This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, and probably more. As&amp;nbsp;&lt;span class="type"&gt;array&lt;/span&gt;&amp;nbsp;values can be other&amp;nbsp;&lt;span class="type"&gt;array&lt;/span&gt;s, trees and multidimensional&amp;nbsp;&lt;span class="type"&gt;array&lt;/span&gt;s are also possible.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;Explanation of those data structures is beyond the scope of this manual, but at least one example is provided for each of them. For more information, look towards the considerable literature that exists about this broad topic.&lt;/div&gt;&lt;div class="sect2" id="language.types.array.syntax" style="text-align: -webkit-auto;"&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #0b5394; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #0b5394; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; $Country[0] = "Australia"; // Australia is the first(0) value&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #0b5394; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; $Country[1] = "Russia"; &amp;nbsp; &amp;nbsp;// Russia is the second(1) value&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #0b5394; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; $Country[2] = "Germany"; &amp;nbsp; // Germany is the third(2) value&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #0b5394; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; $Country[3] = "France"; &amp;nbsp; &amp;nbsp;// France is the fourth(3) value&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #0b5394; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; // The following will display: Let's go to Germany!&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #0b5394; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; print "Let's go to $Country[2]!";&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #0b5394; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;The above example could be written less explicitly:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; $Country = array("Australia", "Russia", "Germany", "France");&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; print "Let's go to $Country[2]!";&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;Rather than using numeric identifiers, array identifiers can be more meaningful when created as in&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;the following examples:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; $Capital["Australia"] = "Canberra";&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; $Capital["Russia"] = "Moscow";&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; $Capital["Germany"] = "Berlin";&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; $Capital["France"] = "Paris";&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp;print "The capital of Russia is ".$Capital["Russia"]."!";&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; $Capital = array(&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Australia" =&amp;gt; "Canberra",&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Russia" =&amp;gt; "Moscow",&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Germany" =&amp;gt; "Berlin",&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "France" =&amp;gt; "Paris");&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; print "The capital of Russia is ".$Capital["Russia"]."!";&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="title" style="background-color: transparent;"&gt;&lt;span style="color: #3d85c6; font-family: verdana, arial, helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style="background-color: white;"&gt;&lt;h2 class="title" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 17px;"&gt;&lt;span style="color: red;"&gt;Objects&lt;/span&gt;&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: small; font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The data type&amp;nbsp;referred to as an object is&amp;nbsp;the key to the object-oriented programming&amp;nbsp;paradigm. The object, can&amp;nbsp;be thought of as a "black box" in which information is sent into it, processed and a result is sent&amp;nbsp;out. &amp;nbsp;The developer has no need to know anything about the internal workings of the code thus&amp;nbsp;giving power to the idea of creating and using objects of already-existing code.&amp;nbsp;Up to this point in the discussion of data types, there has been no need to explicitly declare a data&amp;nbsp;type. &amp;nbsp;PHP determines the data type based on the value that is being stored. However, objects must&amp;nbsp;be explicitly declared. &amp;nbsp;This declaration, which includes the object's characteristics and behavior,&amp;nbsp;takes place within a class. &amp;nbsp;The following is an example of an object declaration:&amp;nbsp;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: small; font-weight: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: small; font-weight: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: small; font-weight: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: small; font-weight: normal;"&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; class respect {&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private $name;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function setRespect($name) {&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;name = 'Mr./Ms. '.$name;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print $this-&amp;gt;name;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; $boss = new respect;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; $boss-&amp;gt;setRespect("Jane Riker");&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;In this simple object example, the result of all this coding is a proper title being placed in front of&amp;nbsp;the boss' name. However, this object could be reused over and over again throughout the remained&amp;nbsp;of the application:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; $assistant = new respect;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; $assistant-&amp;gt;setRespect("Wes Picard");&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #0b5394;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: small; font-weight: normal;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: small; font-weight: normal;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="color: #741b47; font-size: large;"&gt;&lt;b&gt;Special types:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h2 class="title" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 17px; font-weight: normal;"&gt;&lt;span style="color: red;"&gt;Resources&lt;/span&gt;&lt;/h2&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; font-weight: normal;"&gt;A&amp;nbsp;&lt;span class="type"&gt;resource&lt;/span&gt;&amp;nbsp;is a special variable, holding a reference to an external resource. Resources are created and used by special functions. See the&amp;nbsp;appendix&amp;nbsp;for a listing of all these functions and the corresponding&amp;nbsp;&lt;span class="type"&gt;resource&lt;/span&gt;&amp;nbsp;types.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; font-weight: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px;"&gt;&lt;span style="color: #000066; font-size: 15px;"&gt;Converting to resource&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; font-weight: normal;"&gt;&lt;span style="color: #000066; font-size: 15px; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="sect2" id="language.types.resource.casting" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; font-weight: normal;"&gt;&lt;div class="para"&gt;As&amp;nbsp;&lt;span class="type"&gt;resource&lt;/span&gt;&amp;nbsp;variables hold special handlers to opened files, database connections, image canvas areas and the like, converting to a&amp;nbsp;&lt;span class="type"&gt;resource&lt;/span&gt;&amp;nbsp;makes no sense.&lt;/div&gt;&lt;/div&gt;&lt;div class="sect2" id="language.types.resource.self-destruct"&gt;&lt;h3 class="title" style="background-color: transparent; color: #000066; font-family: verdana, arial, helvetica, sans-serif; font-size: 15px; font-weight: normal;"&gt;Freeing resources&lt;/h3&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; font-weight: normal;"&gt;Thanks to the reference-counting system introduced with PHP 4's Zend Engine, a&amp;nbsp;&lt;span class="type"&gt;resource&lt;/span&gt;&amp;nbsp;with no more references to it is detected automatically, and it is freed by the garbage collector. For this reason, it is rarely necessary to free the memory manually.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; font-weight: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; font-weight: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; font-weight: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="para"&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&amp;nbsp;One of the benefits of using PHP is its ability to interact with some external data&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;source: databases, files, network streams, etc. &amp;nbsp; To utilize these external data sources, PHP must&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 14px;"&gt;create handles that are named when a successful connection is initiated. &amp;nbsp;These handles continue to&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 14px;"&gt;be the main point of reference for any communication that takes place. &amp;nbsp;When the communication&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 14px;"&gt;process is completed, the handle is destroyed and the connection is terminated. &amp;nbsp;These handles fall&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 14px;"&gt;under the resource data type.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; $dbLink = mysql_connect ("localhost","root","training") or &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;die("Could not connect to MySQL server");&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; $query = "SHOW TABLES FROM INFORMATION SCHEMA";&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; $result = mysql_query($query);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; While ($row = mysql_fetch_array($result)) {&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print row[0]."&amp;lt;br&amp;gt;";&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; mysql_close();&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;span style="color: #0b5394;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;In the example above, the $dbLink variable is assigned a resource data type based on the action&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 14px;"&gt;that is taking place (connecting to the local MySQL database server). &amp;nbsp;If $dbLink was referenced&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 14px;"&gt;directly, a reference to a resource id would be returned&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para"&gt;&lt;/div&gt;&lt;h2 class="title" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 17px;"&gt;&lt;span style="color: red;"&gt;NULL&lt;/span&gt;&lt;/h2&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px;"&gt;The special&amp;nbsp;&lt;b&gt;&lt;tt style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;NULL&lt;/tt&gt;&lt;/b&gt;&amp;nbsp;value represents a variable with no value.&amp;nbsp;&lt;b&gt;&lt;tt style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;NULL&lt;/tt&gt;&lt;/b&gt;&amp;nbsp;is the only possible value of type&amp;nbsp;&lt;span class="type"&gt;NULL&lt;/span&gt;.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px;"&gt;A variable is considered to be&amp;nbsp;&lt;span class="type"&gt;null&lt;/span&gt;&amp;nbsp;if:&lt;/div&gt;&lt;ul class="itemizedlist" style="background-color: white;"&gt;&lt;li class="listitem" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; list-style-type: square; padding-bottom: 3px; padding-top: 3px;"&gt;&lt;div class="para"&gt;it has been assigned the constant&amp;nbsp;&lt;b&gt;&lt;tt style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;NULL&lt;/tt&gt;&lt;/b&gt;.&lt;/div&gt;&lt;/li&gt;&lt;li class="listitem" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; list-style-type: square; padding-bottom: 3px; padding-top: 3px;"&gt;&lt;div class="para"&gt;it has not been set to any value yet.&lt;/div&gt;&lt;/li&gt;&lt;li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"&gt;&lt;div class="para" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 14px;"&gt;it has been&amp;nbsp;&lt;span class="function"&gt;unset()&lt;/span&gt;.&lt;/div&gt;&lt;div class="para" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 14px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="para"&gt;&lt;/div&gt;&lt;div class="para"&gt;&lt;span style="color: #0b5394; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para"&gt;&lt;span style="color: #0b5394; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; $SSAN = '112-34-5677';&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para"&gt;&lt;span style="color: #0b5394; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; unset($SSAN);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para"&gt;&lt;span style="color: #0b5394; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="sect2" id="language.types.null.syntax" style="font-size: 14px;"&gt;&lt;h3 class="title" style="background-color: transparent; color: #000066; font-family: verdana, arial, helvetica, sans-serif; font-size: 15px;"&gt;Syntax&lt;/h3&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;There is only one value of type&amp;nbsp;&lt;span class="type"&gt;null&lt;/span&gt;, and that is the case-insensitive keyword&amp;nbsp;&lt;b&gt;&lt;tt style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;NULL&lt;/tt&gt;&lt;/b&gt;.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;&amp;lt;?php&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;$var&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;NULL&lt;/span&gt;&lt;span style="color: #007700; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="font-family: verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: #0000bb; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; text-align: left;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-563121219162123388?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/563121219162123388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/php-data-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/563121219162123388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/563121219162123388'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/php-data-types.html' title='PHP Data Types'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-2048215011028098151</id><published>2012-01-12T05:21:00.000-08:00</published><updated>2012-01-11T05:22:57.935-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Construct Feedback in php'/><category scheme='http://www.blogger.com/atom/ns#' term='output methods in php'/><category scheme='http://www.blogger.com/atom/ns#' term='feedback in php printf in php echo in php'/><title type='text'>Different Types of Output Methods in PHP</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;The strength of the web has been the ability for practically anyone to provide information (accurate or not)&amp;nbsp;to anyone who is interested in viewing the web pages that contain that information. &amp;nbsp;With HTML, the static&amp;nbsp;nature of the information being displayed limits the amount of true customization that can be provided;&amp;nbsp;however, PHP provides truly dynamic content by creating custom content each time the web page is&amp;nbsp;displayed. &amp;nbsp;To accomplish this display of information, PHP has four functions that make this happen:&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&amp;nbsp; &amp;nbsp;•&lt;span style="color: red;"&gt; &amp;nbsp;print()&lt;/span&gt; -&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; This statement is designed to provide user feedback; in other words, this function "prints"&amp;nbsp;content to the HTML code which in turn will be displayed on the web page when called. &amp;nbsp;The print()&amp;nbsp;function can display both raw strings and variables.&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; print('&amp;lt;p&amp;gt;This is the standard use of the print function.&amp;lt;/p&amp;gt;');&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; print '&amp;lt;p&amp;gt;However, the parentheses are not necessary.&amp;lt;/p&amp;gt;';&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; $var = "print";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; print "&amp;lt;p&amp;gt;Variables can also be included with the $var &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;function.&amp;lt;/p&amp;gt;";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; print '&amp;lt;p&amp;gt;Another way to add a variable to a ' . $var .&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;' function is to concatenate it to the strings&amp;lt;/p&amp;gt;';&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;As shown above, there are multiple ways to use the print function. &amp;nbsp;In addition, breaking the function&amp;nbsp;components across multiple lines is acceptable. &amp;nbsp;The function will continue to read the components&amp;nbsp;until it reaches the semi-colon delimiter (;) which tells the function to complete the process.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="text-align: left;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="text-align: left;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="text-align: left;"&gt;• &amp;nbsp;&lt;span style="color: red;"&gt;echo -&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The echo function is similar to the print function in that it can "print" content to the HTML&amp;nbsp;&lt;/span&gt;code; however, it can not be used in more complex expressions because it returns a void versus the&amp;nbsp;print function which will return a boolean value. Except for this difference, the echo function is no&amp;nbsp;different than the print function. &amp;nbsp;With that thought in mind, many programmers choose to just use the&amp;nbsp;print function to prevent this limitation as they advance in their programming skills.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; echo '&amp;lt;p&amp;gt;This is the standard use of the echo function.&amp;lt;/p&amp;gt;';&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; $var = 'echo';&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; echo "&amp;lt;p&amp;gt;The $functionType function can also use embedded &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;variables.&amp;lt;/p&amp;gt;";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; echo '&amp;lt;p&amp;gt;However, when concatenating with the ', $functionType,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;' function, it is best to use commas to concatenate the &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; strings&amp;lt;/p&amp;gt;';&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;• &amp;nbsp;&lt;span style="color: red;"&gt;printf()&lt;/span&gt; -&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The &amp;nbsp;printf function performs the same function as the &amp;nbsp;print command with the&amp;nbsp;exception that there is greater control over the formatting of the "printed" text. &amp;nbsp;The printf function&amp;nbsp;works from the standard print approach for "printing" text to HTML:&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&amp;lt;?php&amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; printf('&amp;lt;p&amp;gt;This is the standard use of the printf function&amp;lt;/p&amp;gt;');&amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;?&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Of course, the above demonstration does not add any value to the standard print function. &amp;nbsp;But the&amp;nbsp;printf function does not stop there, the following demonstrations show how the format argument&amp;nbsp;can be included to provide a level of formatting to the strings referenced in the printf function:&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&amp;lt;?php&amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; printf('&amp;lt;p&amp;gt;%d Euro = $%01.2f US Dollar&amp;lt;/p&amp;gt;', 1, 1.3);&amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; printf('&amp;lt;p&amp;gt;My %s paid $%01.2f for my $s&amp;lt;/p&amp;gt;', 'Mother', 23.4, &amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"Dog");&amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; printf('&amp;lt;p&amp;gt;However, my %3\$s paid $%2\$01.2f to get away from my &amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;%1\$s&amp;lt;/p&amp;gt;', 'Mother', 100.3, 'Dog');&amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; printf('&amp;lt;p&amp;gt;%11s&amp;lt;/p&amp;gt;', 'Long text can be limited to a certain &amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;number of characters, in this case 11.');&amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;?&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;A complete list of supported type specifiers is located in Appendix D. &amp;nbsp;In the case of the third&amp;nbsp;printf function listed above, the location of the string argument can be chosen by placing the&amp;nbsp;location (#$) with the format type. &amp;nbsp;In the case of &amp;nbsp;%3\$s, the third argument was selected and&amp;nbsp;formatted as a string. &amp;nbsp;The reason for the escape character (\) preceding the dollar sign ($) is to&amp;nbsp;ensure that it was considered part of the formatting versus an actual dollar sign as used in the first&amp;nbsp;printf function.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;sprintf() -&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The sprintf function performs the same functions as the printf function except it&amp;nbsp;stores the result of the function into a variable.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&amp;lt;?php&amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; $orderTotal = sprintf('$%01.2f', 123.456);&amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; print "The order total is $orderTotal";&amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;?&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-2048215011028098151?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/2048215011028098151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/different-types-of-output-methods.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/2048215011028098151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/2048215011028098151'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/different-types-of-output-methods.html' title='Different Types of Output Methods in PHP'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-4120502021134388031</id><published>2012-01-11T06:11:00.000-08:00</published><updated>2012-01-20T01:16:56.288-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php control flow'/><category scheme='http://www.blogger.com/atom/ns#' term='if else in php'/><category scheme='http://www.blogger.com/atom/ns#' term='flow control in php'/><category scheme='http://www.blogger.com/atom/ns#' term='how to implement flow control in php'/><title type='text'>PHP Control Flow (if...elseif....else)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="font-family: Georgia, Times, serif; text-align: -webkit-auto;"&gt;&lt;span style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-color: white;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="font-size: x-small;"&gt;PHP starts with many strengths in its logical and bitwise operators. PHP then extends the ideas of C, Java and Perl control of flow and looping functionality - giving them more of the ease of use associated with Visual Basic or Ruby. Also enhancing the functionality of its associative array, PHP has some powerful control commands with&amp;nbsp;&lt;strong&gt;&lt;em&gt;list()&lt;/em&gt;&lt;/strong&gt;,&lt;em&gt;&lt;strong&gt;&amp;nbsp;each()&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;and&amp;nbsp;&lt;strong&gt;&lt;em&gt;foreach()&lt;/em&gt;&lt;/strong&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, Times, serif; text-align: -webkit-auto;"&gt;&lt;span style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, Times, serif; text-align: -webkit-auto;"&gt;&lt;span style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-color: white; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Finally, PHP takes full advantage of its mixed type capability for variables and functions. Thus functions like&amp;nbsp;&lt;em&gt;&lt;strong&gt;fopen()&lt;/strong&gt;&lt;/em&gt;&amp;nbsp;return a value (a file handle in the case of&amp;nbsp;&lt;em&gt;&lt;strong&gt;fopen()&lt;/strong&gt;&lt;/em&gt;&amp;nbsp;finding a file for opening) or the Boolean&amp;nbsp;&lt;em&gt;&lt;strong&gt;false&lt;/strong&gt;&lt;/em&gt;&amp;nbsp;if no file was found. Developers have to be alert to these different&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, Times, serif; text-align: -webkit-auto;"&gt;&lt;span style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-color: white; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, Times, serif; text-align: -webkit-auto;"&gt;&lt;span style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-color: white; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: -webkit-auto;"&gt;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;Very often when you write code, you want to perform different actions for different decisions.&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;You can use conditional statements in your code to do this.&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;In PHP we have the following conditional statements:&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul style="background-color: white; font-family: verdana, helvetica, arial, sans-serif;"&gt;&lt;li&gt;&lt;span style="color: #38761d;"&gt;if statement&lt;/span&gt;&amp;nbsp;- use this statement to execute some code only if a specified condition is true&lt;/li&gt;&lt;li&gt;&lt;span style="color: #38761d;"&gt;if...else statement&lt;/span&gt;&amp;nbsp;- use this statement to execute some code if a condition is true and another code if the condition is false&lt;/li&gt;&lt;li&gt;&lt;span style="color: #38761d;"&gt;if...elseif....else statement&lt;/span&gt;&amp;nbsp;- use this statement to select one of several blocks of code to be executed&lt;/li&gt;&lt;li&gt;&lt;span style="color: #38761d;"&gt;switch statement&lt;/span&gt;&amp;nbsp;- use this statement to select one of many blocks of code to be executed&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style="font-family: verdana, helvetica, arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h3 style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.5em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;&lt;span style="color: red;"&gt;Conditional Operators&lt;/span&gt;&lt;/h3&gt;&lt;div style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;PHP allows you to perform a number of different comparisons, to check for the equality or relative size of two values. PHP’s conditional operators are shown in Table 3.1.&lt;/div&gt;&lt;h4 style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 14px; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;Table 3.1 Conditional Operators in PHP&lt;/h4&gt;&lt;table style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; color: black; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13px; margin-bottom: 2em;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong&gt;Operator&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tt style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;==&lt;/tt&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Is equal to&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tt style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;===&lt;/tt&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Is identical to (is equal and is the same data type)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tt style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;!=&lt;/tt&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Is not equal to&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tt style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;!==&lt;/tt&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Is not identical to&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tt style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;&amp;lt;&lt;/tt&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Is less than&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tt style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;&amp;lt;=&lt;/tt&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Is less than or equal to&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tt style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;&amp;gt;&lt;/tt&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Is greater than&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tt style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;&amp;gt;=&lt;/tt&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Is greater than or equal to&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="sidebar" style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13px; margin-bottom: 2em; margin-left: 1.5em; margin-right: 1.5em; margin-top: 2em; text-align: -webkit-auto;"&gt;&lt;div class="title caution" style="background-image: url(http://www.informit.com/display/InformIT/images/icons/article-caution.png); background-repeat: no-repeat no-repeat; font-weight: bold; height: 0px !important; line-height: 1.5em; margin-bottom: 1em; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 24px;"&gt;&lt;strong&gt;= or ==?&lt;/strong&gt;&lt;/div&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Be careful when comparing for equality to use a double equals symbol (&lt;tt style="font-size: 12px;"&gt;==&lt;/tt&gt;). A single&amp;nbsp;&lt;tt style="font-size: 12px;"&gt;=&lt;/tt&gt;&amp;nbsp;is always an assignment operator and, unless the value assigned is zero, your condition will always return true—and remember that&amp;nbsp;&lt;tt style="font-size: 12px;"&gt;TRUE&lt;/tt&gt;&amp;nbsp;is any nonzero value. Always use&amp;nbsp;&lt;tt style="font-size: 12px;"&gt;==&lt;/tt&gt;&amp;nbsp;when comparing two values to avoid headaches.&lt;/div&gt;&lt;/div&gt;&lt;h3 style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.5em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;&lt;span style="color: red;"&gt;Logical Operators&lt;/span&gt;&lt;/h3&gt;&lt;div style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;You can combine multiple expressions to check two or more criteria in a single conditional statement. For example, the following statement checks whether the value of&amp;nbsp;&lt;tt style="font-size: 12px;"&gt;$number&lt;/tt&gt;&amp;nbsp;is between 5 and 10:&lt;/div&gt;&lt;pre style="font-size: 12px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: -webkit-auto; width: 536px;"&gt;$number = 8;&lt;br /&gt;if ($number &amp;gt;= 5 and $number &amp;lt;= 10) {&lt;br /&gt; echo "$number is between five and ten";&lt;br /&gt;}&lt;/pre&gt;&lt;div style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;The keyword&amp;nbsp;&lt;tt style="font-size: 12px;"&gt;and&lt;/tt&gt;&amp;nbsp;is a&amp;nbsp;&lt;em&gt;logical operator,&lt;/em&gt;&amp;nbsp;which signifies that the overall condition will be true only if the expressions on either side are true. That is,&amp;nbsp;&lt;tt style="font-size: 12px;"&gt;$number&lt;/tt&gt;&amp;nbsp;has to be both greater than or equal to 5 and less than or equal to 10.&lt;/div&gt;&lt;div style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;Table 3.2 shows the logical operators that can be used in PHP.&lt;/div&gt;&lt;h4 style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 14px; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;Table 3.2 Logical Operators in PHP&lt;/h4&gt;&lt;table style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; color: black; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13px; margin-bottom: 2em;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong&gt;Operator&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong&gt;Name&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tt style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;!&amp;nbsp;&lt;/tt&gt;&lt;em&gt;a&lt;/em&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;NOT&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;True if&amp;nbsp;&lt;em&gt;a&lt;/em&gt;&amp;nbsp;is not true&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;em&gt;a&lt;/em&gt;&lt;tt style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;&lt;/tt&gt;&lt;em&gt;b&lt;/em&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;AND&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;True if both&amp;nbsp;&lt;em&gt;a&lt;/em&gt;&amp;nbsp;and&amp;nbsp;&lt;em&gt;b&lt;/em&gt;&amp;nbsp;are true&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;em&gt;a&lt;/em&gt;&lt;tt style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;&amp;nbsp;||&amp;nbsp;&lt;/tt&gt;&lt;em&gt;b&lt;/em&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;OR&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;True if either&amp;nbsp;&lt;em&gt;a&lt;/em&gt;&amp;nbsp;or&amp;nbsp;&lt;em&gt;b&lt;/em&gt;&amp;nbsp;is true&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;em&gt;a&amp;nbsp;&lt;/em&gt;&lt;tt style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;and&amp;nbsp;&lt;/tt&gt;&lt;em&gt;b&lt;/em&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;AND&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;True if both&amp;nbsp;&lt;em&gt;a&lt;/em&gt;&amp;nbsp;and&amp;nbsp;&lt;em&gt;b&lt;/em&gt;&amp;nbsp;are true&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;em&gt;a&lt;/em&gt;&lt;tt style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;&amp;nbsp;xor&amp;nbsp;&lt;/tt&gt;&lt;em&gt;b&lt;/em&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;XOR&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;True if&amp;nbsp;&lt;em&gt;a&lt;/em&gt;&amp;nbsp;or&amp;nbsp;&lt;em&gt;b&lt;/em&gt;&amp;nbsp;is true, but not both&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tt style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;a or b&lt;/tt&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;OR&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; vertical-align: top;"&gt;&lt;div style="line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;True if either&amp;nbsp;&lt;em&gt;a&lt;/em&gt;&amp;nbsp;or&amp;nbsp;&lt;em&gt;b&lt;/em&gt;&amp;nbsp;is true&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;You may have noticed that there are two different ways of performing a logical AND or OR in PHP. The difference between&amp;nbsp;&lt;tt style="font-size: 12px;"&gt;and&lt;/tt&gt;&amp;nbsp;and&amp;nbsp;&lt;tt style="font-size: 12px;"&gt;&amp;amp;&amp;amp;&lt;/tt&gt;&amp;nbsp;(and between&amp;nbsp;&lt;tt style="font-size: 12px;"&gt;or&lt;/tt&gt;&amp;nbsp;and&amp;nbsp;&lt;tt style="font-size: 12px;"&gt;||&lt;/tt&gt;) is the precedence used to evaluate expressions.&lt;/div&gt;&lt;div style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;Table 3.2 lists the highest-precedence operators first. The following conditions, which appear to do the same thing, are subtly but significantly different:&lt;/div&gt;&lt;pre style="font-size: 12px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: -webkit-auto; width: 536px;"&gt;&lt;em&gt;a&lt;/em&gt; or &lt;em&gt;b&lt;/em&gt; and &lt;em&gt;c&lt;/em&gt;&lt;br /&gt;&lt;em&gt;a&lt;/em&gt; || &lt;em&gt;b&lt;/em&gt; and &lt;em&gt;c&lt;/em&gt;&lt;/pre&gt;&lt;div style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;In the former condition, the&amp;nbsp;&lt;tt style="font-size: 12px;"&gt;and&lt;/tt&gt;&amp;nbsp;takes precedence and is evaluated first. The overall condition is true if&amp;nbsp;&lt;em&gt;a&lt;/em&gt;&amp;nbsp;is true or if both&amp;nbsp;&lt;em&gt;b&lt;/em&gt;&amp;nbsp;and&amp;nbsp;&lt;em&gt;c&lt;/em&gt;&amp;nbsp;are true.&lt;/div&gt;&lt;div style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;In the latter condition, the&amp;nbsp;&lt;tt style="font-size: 12px;"&gt;||&lt;/tt&gt;&amp;nbsp;takes precedence, so&amp;nbsp;&lt;em&gt;c&lt;/em&gt;&amp;nbsp;must be true, as must either&amp;nbsp;&lt;em&gt;a&lt;/em&gt;&amp;nbsp;or&amp;nbsp;&lt;em&gt;b&lt;/em&gt;, to satisfy the condition.&lt;/div&gt;&lt;div style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5em; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;&lt;/div&gt;&lt;h2 id="h2.1" style="background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; line-height: normal; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em;"&gt;if Conditions&lt;/h2&gt;&lt;h3 id="h3.1" style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 1em; line-height: normal; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Simple if statement&lt;/h3&gt;&lt;div class="SyntaxBlock" style="background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; font-family: Arial, Verdana; font-size: 13px; line-height: normal; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em;"&gt;&lt;div class="SyntaxBlockHeading" style="color: #222222; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Syntax&lt;/div&gt;&lt;pre style="background-color: #eeeeee; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;"&gt;&lt;span style="color: #0b5394;"&gt;if (conditions)&lt;br /&gt; Do this;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; line-height: normal; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;In the above code, the&amp;nbsp;&lt;span class="Code" style="font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Do this;&lt;/span&gt;&amp;nbsp;statement will either run or not run depending on whether or not the conditions are true. This syntax can only be used when the condition affects a single line of code. For a block of code, use the following syntax.&lt;/div&gt;&lt;div class="SyntaxBlock" style="background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; font-family: Arial, Verdana; font-size: 13px; line-height: normal; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em;"&gt;&lt;div class="SyntaxBlockHeading" style="color: #222222; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Syntax&lt;/div&gt;&lt;pre style="background-color: #eeeeee; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;"&gt;&lt;span style="color: #0b5394;"&gt;if (conditions)&lt;br /&gt;{&lt;br /&gt; Do this;&lt;br /&gt; Then do this;&lt;br /&gt; And this too;&lt;br /&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; line-height: normal; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;The lines of code affected by the if condition are put in a code block, which is surrounded by curly brackets to indicate that all of the code either should or should not be executed, depending on the result of the if condition.&lt;/div&gt;&lt;h3 id="h3.2" style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 1em; line-height: normal; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;if-else statement&lt;/h3&gt;&lt;div class="SyntaxBlock" style="background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; font-family: Arial, Verdana; font-size: 13px; line-height: normal; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em;"&gt;&lt;div class="SyntaxBlockHeading" style="color: #222222; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Syntax&lt;/div&gt;&lt;pre style="background-color: #eeeeee; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;"&gt;&lt;span style="color: #0b5394;"&gt;if (conditions)&lt;br /&gt;{&lt;br /&gt; Do this;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt; Do that;&lt;br /&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="h3.3" style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 1em; line-height: normal; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;if-elseif-else statement&lt;/h3&gt;&lt;div class="SyntaxBlock" style="background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; font-family: Arial, Verdana; font-size: 13px; line-height: normal; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em;"&gt;&lt;div class="SyntaxBlockHeading" style="color: #222222; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Syntax&lt;/div&gt;&lt;pre style="background-color: #eeeeee; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;"&gt;&lt;span style="color: #0b5394;"&gt;if (conditions)&lt;br /&gt;{&lt;br /&gt; Do this;&lt;br /&gt;}&lt;br /&gt;elseif (other conditions)&lt;br /&gt;{&lt;br /&gt; Do that;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt; Do this other thing;&lt;br /&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; line-height: normal; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;The two syntax blocks above show an&amp;nbsp;&lt;span class="Code" style="font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;if&lt;/span&gt;-&lt;span class="Code" style="font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;else&lt;/span&gt;&amp;nbsp;and an&amp;nbsp;&lt;span class="Code" style="font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;if&lt;/span&gt;-&lt;span class="Code" style="font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;elseif&lt;/span&gt;-&lt;span class="Code" style="font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;else&lt;/span&gt;&amp;nbsp;statement, which can have any number of&lt;span class="Code" style="font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;elseif&lt;/span&gt;&amp;nbsp;blocks.&lt;/div&gt;&lt;div style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; line-height: normal; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: white; font-family: Arial, Verdana; font-size: 13px; line-height: normal; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #741b47;"&gt;EXAMPLE&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; line-height: normal; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: white; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; $currentDate = time();&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; if (strtotime($_POST['DateEntered']) &amp;gt; $currentDate) {&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo 'That date is in the future';&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; } elseif (strtotime($_POST['DateEntered']) &amp;lt; $currentDate) {&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo 'That date is in the past';&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; } else {&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo 'That is today';&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; $currentDate = time();&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; if (strtotime($_POST['DateEntered']) &amp;gt; $currentDate) &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; {&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo 'That date is in the future';&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; } &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; else if (strtotime($_POST['DateEntered']) &amp;lt; $currentDate) &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; {&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo 'That date is in the past';&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; } &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; else &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; {&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo 'That is today';&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: #0b5394; font-family: Arial, Verdana; font-size: x-small;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; line-height: normal; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-4120502021134388031?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/4120502021134388031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/php-control-flow-ifelseifelse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/4120502021134388031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/4120502021134388031'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/php-control-flow-ifelseifelse.html' title='PHP Control Flow (if...elseif....else)'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-8192597378338488607</id><published>2012-01-10T21:55:00.000-08:00</published><updated>2012-01-10T21:57:12.986-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php comments'/><category scheme='http://www.blogger.com/atom/ns#' term='commenting in php'/><category scheme='http://www.blogger.com/atom/ns#' term='how to comment in php'/><title type='text'>Comments</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;When it comes to commenting code, the consensus is it is necessary but the reality is it rarely is done. &amp;nbsp;It&amp;nbsp;has been said that commenting code is like cleaning the bathroom - no one ever wants to do it but a clean&amp;nbsp;bathroom creates a more pleasant experience for all that will need to use it. &amp;nbsp;There are many types of&amp;nbsp;commenting strategies with each having advantages &amp;nbsp;and disadvantages over each other. &amp;nbsp;The key is to&amp;nbsp;comment, how that is accomplished is best worked within a team environment and calls for a great deal of&amp;nbsp;flexibility. &amp;nbsp;The following are types of typical commenting that should be considered along with how they&amp;nbsp;would be implemented inside of PHP code:&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: red;"&gt;Code Commenting&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;This form of commenting is not considered traditional commenting (in the sense of creating remarks to&amp;nbsp;support the code) but is closer related to good programming design principles. &amp;nbsp;This best practice approach&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;to coding involves using coding names that describe the action that is taking place.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;div id="abw" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-top-color: rgb(255, 51, 0); border-top-style: solid; border-top-width: 3px; font-family: inherit; font-size: 12px; font-style: inherit; margin-bottom: 0.75em; margin-left: auto; margin-right: auto; margin-top: 0px; padding-bottom: 0px; padding-left: 15px; padding-right: 15px; padding-top: 0px; position: relative; text-decoration: inherit; width: 930px;"&gt;&lt;div class="clear" id="abm" style="font-family: inherit; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; text-decoration: inherit; zoom: 1;"&gt;&lt;div id="abc" style="font-family: inherit; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: -336px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; text-decoration: inherit; width: 930px;"&gt;&lt;div id="articlebody" style="font-family: inherit; font-style: inherit; margin-bottom: 1.5em; margin-left: 0px; margin-right: 351px; margin-top: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: inherit;"&gt;&lt;pre style="font-family: inherit; font-style: inherit; margin-bottom: 1.5em; margin-left: 3em; margin-top: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: inherit; white-space: pre-wrap;"&gt;&lt;code style="font-family: 'Droid Sans Mono', Courier, monospace; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: inherit;"&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;?php &lt;br /&gt; echo "hello"; &lt;br /&gt; //this is a comment &lt;br /&gt; echo " there"; &lt;br /&gt; ?&amp;gt; &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;These examples show that the variable or function name give a description of what is being performed. &amp;nbsp;Before abbreviating any code identifiers, make sure that they are descriptive enough so that others who&amp;nbsp;would need to read the code would understand their meaning upon first glance. &amp;nbsp;Any time that needs to be&amp;nbsp;devoted to deciphering a given naming convention is clearly a waste of time and should be considered over&amp;nbsp;any advantage of minimizing the extra key strokes required by the initial programmers.&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;InLine Commenting &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The most basic form of commenting is that which is referred to as inline or single line commenting. &amp;nbsp;This&lt;br /&gt;type of commenting has its history in C++ and has become the standard approach to commenting for many&lt;br /&gt;programmers (when they comment). &amp;nbsp;PHP supports this type of commenting by using two consecutive&lt;br /&gt;forward slashes (//) preceding any comments added.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-family: 'courier new'; font-size: 13px;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&amp;lt;?php&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;//This is a comment&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-family: 'courier new'; font-size: 13px;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;/*&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;This is&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;div style="text-align: left;"&gt;a comment&lt;/div&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;div style="text-align: left;"&gt;block&lt;/div&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;div style="text-align: left;"&gt;*/&lt;/div&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;div style="text-align: left;"&gt;?&amp;gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-family: 'courier new'; font-size: 13px;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="background-color: white; font-family: 'courier new'; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;With inline comments, there is no need to delimit the comments conclusion, the carriage return (\n)&amp;nbsp;performs that action.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-8192597378338488607?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/8192597378338488607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/comments.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/8192597378338488607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/8192597378338488607'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/comments.html' title='Comments'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-5273667540973767920</id><published>2012-01-10T06:49:00.000-08:00</published><updated>2012-01-10T06:49:23.622-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php basic'/><category scheme='http://www.blogger.com/atom/ns#' term='php delimiting'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='delimiting php'/><title type='text'>Delimiting PHP Code</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PHP was originally designed to be used in conjunction with a web server, and in the case of the LAMP&lt;br /&gt;architecture, the Apache Web Server. &amp;nbsp;PHP applications are designed embedding PHP scripts within a web&lt;br /&gt;page along with its HTML. &amp;nbsp;Unlike standard HTML pages which are sent directly from the web server to&lt;br /&gt;the end user, PHP files are first interpreted by the PHP application which then converts the PHP script into&lt;br /&gt;another form for display. &amp;nbsp;This process eliminates the end user from being able to see the original PHP&lt;br /&gt;script that was embedded in the HTML and provides &amp;nbsp;true interaction in HTML files. &amp;nbsp;This process is&lt;br /&gt;similar to proprietary applications such as ASP and Coldfusion; however, PHP is Open Source and cross-&lt;br /&gt;platform.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: large;"&gt;PHP Tags&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PHP scripts are distinguished from the HTML scripts by using delimiting characters that tell the server to&lt;br /&gt;execute the PHP application to interpret that which is contained in the code. &amp;nbsp;There are four ways to&lt;br /&gt;accomplish this; however, the first two listed below are the safest for portability and conflict prevention:&lt;br /&gt;&lt;br /&gt;• &amp;nbsp;&lt;span style="color: #6aa84f;"&gt;Default Syntax&lt;/span&gt; - The default syntax is starting the PHP script with &amp;lt;?php and closing out the script&lt;br /&gt;with ?&amp;gt;. &amp;nbsp;The following example demonstrates how this would look within HTML code:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;PHP Default Syntax&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;body&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;h3&amp;gt;PHP Default Syntax&amp;lt;/h3&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; print "This is an example of using PHP Default Syntax";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;• &amp;nbsp;&lt;span style="color: #38761d;"&gt;Script Syntax&lt;/span&gt; - Due to limitations with certain HTML editors, PHP added the ability to support a&lt;br /&gt;mainstream delimiter variant, &amp;nbsp;&amp;lt;script&amp;gt;. &amp;nbsp;The following example demonstrates how this would&lt;br /&gt;look:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;script language="php"&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; print "This is an example of using PHP script delimiting&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;syntax";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;/script&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;• &lt;span style="color: #38761d;"&gt;&amp;nbsp;Short Tags&lt;/span&gt; - Due to the fact that many programmers are interested in minimizing the amount of code&lt;br /&gt;that needs to be written to accomplish a task, PHP implemented a shorter delimiter syntax to support&lt;br /&gt;this desire. Instead of needing to type &amp;lt;?php to start the PHP script, programmers can simply type&lt;br /&gt;&amp;lt;? to start the PHP script. &amp;nbsp;The following example demonstrates how this would look:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;?&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; print "This is an example of using PHP Short Tag Syntax";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;•&lt;span style="color: #38761d;"&gt; &amp;nbsp;ASP-Style&lt;/span&gt; - There are many PHP programmers that have experience with other similar programming&lt;br /&gt;languages, such as ASP. &amp;nbsp;ASP delimits code using &amp;lt;% and %&amp;gt;. &amp;nbsp;PHP has provided support for this&lt;br /&gt;type of delimiting. &amp;nbsp;The following example demonstrates how this would look:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;lt;%&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp; &amp;nbsp; print "This is an example of using ASP-Style delimiting syntax";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;%&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-5273667540973767920?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/5273667540973767920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/delimiting-php-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/5273667540973767920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/5273667540973767920'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/delimiting-php-code.html' title='Delimiting PHP Code'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-7728640901975352291</id><published>2012-01-09T10:07:00.000-08:00</published><updated>2012-01-09T10:07:01.223-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php and mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='introduction'/><category scheme='http://www.blogger.com/atom/ns#' term='php introdution'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='html'/><title type='text'>PHP INTRODUCTION</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;acronym style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;" title="PHP: Hypertext Preprocessor"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/acronym&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;acronym style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;" title="PHP: Hypertext Preprocessor"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PHP&lt;/acronym&gt;&lt;span style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&amp;nbsp;(recursive acronym for&amp;nbsp;&lt;/span&gt;&lt;i style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;PHP: Hypertext Preprocessor&lt;/i&gt;&lt;span style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;ul style="background-color: white; font-family: verdana, helvetica, arial, sans-serif; text-align: left;"&gt;&lt;li style="text-align: justify;"&gt;&lt;span style="color: #0b5394;"&gt;PHP stands for&amp;nbsp;&lt;b&gt;P&lt;/b&gt;HP:&amp;nbsp;&lt;b&gt;H&lt;/b&gt;ypertext&amp;nbsp;&lt;b&gt;P&lt;/b&gt;reprocessor&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;span style="color: #0b5394;"&gt;PHP is a server-side scripting language, like ASP&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;span style="color: #0b5394;"&gt;PHP scripts are executed on the server&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;span style="color: #0b5394;"&gt;PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;span style="color: #0b5394;"&gt;PHP is an open source software&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;span style="color: #0b5394;"&gt;PHP is free to download and use&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;h2 style="background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px; text-align: -webkit-auto;"&gt;&lt;span style="color: red;"&gt;Why PHP?&lt;/span&gt;&lt;/h2&gt;&lt;ul style="background-color: white; font-family: verdana, helvetica, arial, sans-serif; text-align: -webkit-auto;"&gt;&lt;li&gt;&lt;span style="color: #0b5394;"&gt;PHP runs on different platforms (Windows, Linux, Unix, etc.)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: #0b5394;"&gt;PHP is compatible with almost all servers used today (Apache, IIS, etc.)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: #0b5394;"&gt;PHP is FREE to download from the official PHP resource:&amp;nbsp;&lt;a href="http://www.php.net/" style="background-color: transparent;" target="_blank"&gt;www.php.net&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: #0b5394;"&gt;PHP is easy to learn and runs efficiently on the server side&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="info" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;h1 class="title" style="background-color: transparent; font-size: 18px; margin-top: 0px;"&gt;&lt;span style="color: red;"&gt;What can PHP do?&lt;/span&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;Anything. PHP is mainly focused on server-side scripting, so you can do anything any other CGI program can do, such as collect form data, generate dynamic page content, or send and receive cookies. But PHP can do much more.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;There are three main areas where PHP scripts are used.&lt;/div&gt;&lt;ul class="itemizedlist" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"&gt;&lt;span class="simpara"&gt;Server-side scripting. This is the most traditional and main target field for PHP. You need three things to make this work. The PHP parser (CGI or server module), a web server and a web browser. You need to run the web server, with a connected PHP installation. You can access the PHP program output with a web browser, viewing the PHP page through the server. All these can run on your home machine if you are just experimenting with PHP programming. See the&amp;nbsp;installation instructions&amp;nbsp;section for more information.&lt;/span&gt;&lt;/li&gt;&lt;li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"&gt;&lt;span class="simpara"&gt;Command line scripting. You can make a PHP script to run it without any server or browser. You only need the PHP parser to use it this way. This type of usage is ideal for scripts regularly executed using cron (on *nix or Linux) or Task Scheduler (on Windows). These scripts can also be used for simple text processing tasks. See the section about&amp;nbsp;Command line usage of PHP&amp;nbsp;for more information.&lt;/span&gt;&lt;/li&gt;&lt;li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"&gt;&lt;span class="simpara"&gt;Writing desktop applications. PHP is probably not the very best language to create a desktop application with a graphical user interface, but if you know PHP very well, and would like to use some advanced PHP features in your client-side applications you can also use PHP-GTK to write such programs. You also have the ability to write cross-platform applications this way. PHP-GTK is an extension to PHP, not available in the main distribution.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;PHP can be&amp;nbsp;used&amp;nbsp;on all major operating systems, including Linux, many Unix variants (including HP-UX, Solaris and OpenBSD), Microsoft Windows, Mac OS X, RISC OS, and probably others. PHP has also support for most of the web servers today. This includes Apache, IIS, and many others. And this includes any web server that can utilize the FastCGI PHP binary, like lighttpd and nginx. PHP works as either a module, or as a CGI processor.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;So with PHP, you have the freedom of choosing an operating system and a web server. Furthermore, you also have the choice of using procedural programming or object oriented programming (OOP), or a mixture of them both.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;With PHP you are not limited to output HTML. PHP's abilities includes outputting images, PDF files and even Flash movies (using libswf and Ming) generated on the fly. You can also output easily any text, such as XHTML and any other XML file. PHP can autogenerate these files, and save them in the file system, instead of printing it out, forming a server-side cache for your dynamic content.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;One of the strongest and most significant features in PHP is its support for a&amp;nbsp;wide range of databases. Writing a database-enabled web page is incredibly simple using one of the database specific extensions (e.g., for&amp;nbsp;mysql), or using an abstraction layer like&amp;nbsp;PDO, or connect to any database supporting the Open Database Connection standard via the&amp;nbsp;ODBC&amp;nbsp;extension. Other databases may utilize&amp;nbsp;cURL&amp;nbsp;or&amp;nbsp;sockets, like CouchDB.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;PHP also has support for talking to other services using protocols such as LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM (on Windows) and countless others. You can also open raw network sockets and interact using any other protocol. PHP has support for the WDDX complex data exchange between virtually all Web programming languages. Talking about interconnection, PHP has support for instantiation of Java objects and using them transparently as PHP objects.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;PHP has useful&amp;nbsp;text processing&amp;nbsp;features, which includes the Perl compatible regular expressions (PCRE), and many extensions and tools to&amp;nbsp;parse and access XML documents. PHP standardizes all of the XML extensions on the solid base of&amp;nbsp;libxml2, and extends the feature set adding&amp;nbsp;SimpleXML,&amp;nbsp;XMLReader&amp;nbsp;and&amp;nbsp;XMLWriter&amp;nbsp;support.&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;And many other interesting extensions exist, which are categorized both&amp;nbsp;alphabetically&amp;nbsp;and by&amp;nbsp;category. And there are additional PECL extensions that may or may not be documented within the PHP manual itself&lt;/div&gt;&lt;div class="para" style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; text-align: -webkit-auto;"&gt;As you can see this page is not enough to list all the features and benefits PHP can offer. Read on in the sections about&amp;nbsp;installing PHP, and see the&amp;nbsp;function reference&amp;nbsp;part for explanation of the extensions mentioned here.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-7728640901975352291?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/7728640901975352291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/php-introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/7728640901975352291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/7728640901975352291'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/php-introduction.html' title='PHP INTRODUCTION'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-1963364383307633373</id><published>2012-01-08T06:53:00.000-08:00</published><updated>2012-01-08T07:32:43.614-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wamp.about wamp'/><title type='text'>ABOUT WAMP</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WAMPs are packages of independently-created programs installed on computers that use a Microsoft Windows operating system.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WAMP is an acronym formed from the initials of the operating system Microsoft Windows and the principal components of the package:Apache, MySQL and one of PHP. Apache is a web server. MySQL is an open-source database. PHP is a scripting language that can manipulate information held in a database and generate web pages dynamically each time content is requested by a browser. Other programs may also be included in a package, such as phpMyAdmin which provides a graphical user interface for the MySQL database manager, or the alternative scripting languages Python or Perl. Equivalent packages are MAMP (for the Apple Mac) and LAMP (for the Linuxoperating system).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://download.cnet.com/WampServer/3000-10248_4-10797035.html" target="_blank"&gt;To&amp;nbsp;download&amp;nbsp; WAMP click here&lt;/a&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object width="320" height="266" class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://2.gvt0.com/vi/4W4Ok4vDssI/0.jpg"&gt;&lt;param name="movie" value="http://www.youtube.com/v/4W4Ok4vDssI&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266"  src="http://www.youtube.com/v/4W4Ok4vDssI&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-1963364383307633373?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/1963364383307633373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/about-wamp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/1963364383307633373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/1963364383307633373'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/about-wamp.html' title='ABOUT WAMP'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-2848280692256159806</id><published>2012-01-07T10:04:00.000-08:00</published><updated>2012-01-08T07:29:10.004-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql products'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql enterprise'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql introduction'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql gui tools'/><category scheme='http://www.blogger.com/atom/ns#' term='mys'/><title type='text'>MySQL INTRODUCTON</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&amp;nbsp;&amp;nbsp;&lt;span style="font-size: large;"&gt;So after learning HTML lets go into the working part&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&amp;nbsp; &amp;nbsp; lets&amp;nbsp;first&amp;nbsp;see what is&amp;nbsp;MySQL&amp;nbsp;and then go to php &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MySQL is installed on every&amp;nbsp;continent in the world&amp;nbsp;(Yes, even Antarctica!)&amp;nbsp;MySQL AB&amp;nbsp;MySQL is a&amp;nbsp;relational&amp;nbsp;Database Management&amp;nbsp;System (RDBMS). MySQL AB develops and&amp;nbsp;markets a family of high performance,&amp;nbsp;affordable database servers and tools.&amp;nbsp;Contributing to building the mission-critical,high-volume systems and products worldwide&amp;nbsp;is what makes MySQL the world’s most&amp;nbsp;popular open source database, as well as its&amp;nbsp;reliability, excellent performance and ease of&amp;nbsp;use.&amp;nbsp;MySQL is not only the world’s most popular&amp;nbsp;open source database, it’s also the fastest&amp;nbsp;growing database in the industry, with more&amp;nbsp;than 11 million active installations and 50,000&amp;nbsp;downloads per day.&amp;nbsp;The company was founded in Sweden by two&amp;nbsp;Swedes and a Finn: David&amp;nbsp;Axmark, Allan&amp;nbsp;Larsson and Michael "Monty" Widenius who&amp;nbsp;have worked together since the 80's. MySQL AB(Swedish for “Inc.”) is the sole owner of the MySQL&amp;nbsp;server source code, the MySQL trademark and the&amp;nbsp;MySQL&amp;nbsp;.com domain worldwide.&amp;nbsp;MySQL has always been a strong supporter of the Open Source philosophy and the Open Source&amp;nbsp;Community, and strives to work with partners that share the same values and mind-set.&amp;nbsp;&lt;/div&gt;&lt;span style="font-size: large;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&amp;nbsp; &amp;nbsp; • &lt;span style="color: #38761d;"&gt;&amp;nbsp;The MySQL mission: To make superior database software available and affordable to all.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object width="320" height="266" class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://2.gvt0.com/vi/X7WBmlK8GLo/0.jpg"&gt;&lt;param name="movie" value="http://www.youtube.com/v/X7WBmlK8GLo&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266"  src="http://www.youtube.com/v/X7WBmlK8GLo&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;span style="font-size: large;"&gt;&lt;span style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-size: large;"&gt;&amp;nbsp;MySQL Products&lt;/span&gt;&lt;span style="color: red; font-size: large;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;MySQL provides database products to meet the needs of ISV/OEM, Enterprise, and Community Server&amp;nbsp;users. MySQL database products are recognized for superior ease of use, performance, and reliability.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;Enterprise Server&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The most reliable, secure and up-to-date version of the world's most popular open source&amp;nbsp;database for cost-effectively delivering E-commerce, Online Transaction Processing (OLTP),&amp;nbsp;and multi-terabyte Data Warehousing applications. (Available only with the MySQL Enterprise&amp;nbsp;subscription).&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;Community Server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The MySQL database server for open source developers and technology&amp;nbsp;enthusiasts who want to get started with MySQL. Supported by the large&amp;nbsp;MySQL open source community. Under the General Public License&amp;nbsp;(GPL), benefits to the open source community include a commercial-grade framework that is free of charge.&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;Embedded Database&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The most popular choice for OEMs/ISVs who want to cost-effectively embed or bundle a&amp;nbsp;reliable and high-performance relational database.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;Cluster&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A fault tolerant database clustering architecture for deploying highly available mission-critical&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;database applications.&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;MaxDB&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Formerly known as SAP DB, MaxDB is the result of a strategic alliance between MySQL and&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;SAP to jointly develop and market an open source database for SAP/R3&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-size: large;"&gt;MySQL Enterprise&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A comprehensive set of enterprise-grade software, support and services directly&amp;nbsp;from the developers of MySQL to ensure the highest levels of reliability, security&amp;nbsp;and uptime. As a proactive service that helps you eliminate problems before they&amp;nbsp;occur, it gives you everything you need in a single, unified offering to&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;successfully develop and deploy business critical applications using MySQL.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;Enterprise Server&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The most reliable, secure and up-to-date version of the world's most popular open source&amp;nbsp;database for cost-effectively delivering E-commerce, Online Transaction Processing&amp;nbsp;(OLTP), and multi-terabyte Data Warehousing applications.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;Network Monitoring and Advisory&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Services to ensure the maximum quality, uptime, and performance of MySQL&amp;nbsp;Enterprise systems.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;Production Support &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Around-the-clock support for the MySQL Enterprise server, along with consulting&amp;nbsp;services and self-help knowledge aids.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394; font-size: large;"&gt;MySQL GUI Tools&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A comprehensive set of open source visual database tools. These easy to use visual tools enable database&amp;nbsp;developers and DBAs to be more productive.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;MySQL Migration Toolkit&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Using a wizard-driven interface, the MySQL Migration&amp;nbsp;Toolkit implements a proven methodology and walks you through&amp;nbsp;the necessary steps to successfully complete a database migration&amp;nbsp;project.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;MySQL Administrator&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A powerful visual administration console that enables you to easily administer your MySQL&amp;nbsp;environment and gain significantly better visibility into how your databases are operating.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;MySQL Query Browser&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; An extremely user-friendly visual tool for creating, executing, and optimizing SQL queries&amp;nbsp;for your MySQL Database Server.&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;&lt;/span&gt;&lt;span style="color: red;"&gt;SQLyog Community&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;SQLyog&lt;/b&gt;&lt;span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;&amp;nbsp;is a&amp;nbsp;&lt;/span&gt;GUI&lt;span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;&amp;nbsp;tool for the&amp;nbsp;&lt;/span&gt;RDBMS&lt;span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;&amp;nbsp;&lt;/span&gt;MySQL&lt;span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;. It is developed by Webyog, Inc. based out of&amp;nbsp;&lt;/span&gt;Bangalore, India&lt;span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;Santa Clara, California&lt;span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;SQLyog is available in free as well as paid versions. The free version is known as&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;Community Edition&lt;/b&gt;&lt;span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;&amp;nbsp;and is available as an open source project&lt;/span&gt;&lt;span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 13px; text-align: -webkit-auto;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;. Paid version are sold as&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;Professional&lt;/b&gt;&lt;span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;,&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;Enterprise&lt;/b&gt;&lt;span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;Ultimate Editions&lt;/b&gt;&lt;span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;"&gt;&amp;nbsp;.&lt;marquee&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;a href="http://ifile.it/8igqn9h/SQLyog-9.5.0-3Community.zip" target="_blank"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;To download Community Edition&amp;nbsp;click&amp;nbsp;here&lt;/a&gt;&lt;/span&gt;&lt;/marquee&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;div style="text-align: -webkit-auto;"&gt;&lt;span style="color: red; font-family: sans-serif; font-size: x-small;"&gt;&lt;span style="line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style="background-color: white; font-family: sans-serif; line-height: 19px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="background-color: white; font-family: sans-serif; line-height: 19px; text-align: -webkit-auto;"&gt;&lt;span style="color: #0b5394; font-size: large;"&gt;MySQL Drivers&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="background-color: white; font-family: sans-serif; line-height: 19px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="background-color: white; font-family: sans-serif; line-height: 19px; text-align: -webkit-auto;"&gt;&lt;span style="color: red; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="background-color: white; font-family: sans-serif; line-height: 19px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-size: 13px; text-align: justify;"&gt;&lt;span style="background-color: white; font-family: sans-serif; line-height: 19px; text-align: -webkit-auto;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Standards-based drivers (also known as Connectors) enable developers to build database applications in&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;span style="background-color: white; font-family: sans-serif; line-height: 19px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-size: 13px; text-align: justify;"&gt;&lt;span style="background-color: white; font-family: sans-serif; line-height: 19px; text-align: -webkit-auto;"&gt;their language of choice. In addition, a native C library allows developers to embed MySQL directly into&amp;nbsp;their ‘C’ applications. MySQL provides the following drivers:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;span style="background-color: white; font-family: sans-serif; line-height: 19px; text-align: -webkit-auto;"&gt;&lt;div style="font-size: 13px; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;MySQL Connector/ODBC&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Connect to a MySQL database server using the ODBC database API on all Microsoft&amp;nbsp;Windows and most Unix platforms.&amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;MySQL Connector/J&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A native Java driver that converts JDBC (Java Database Connectivity) calls into the network&amp;nbsp;protocol used by the MySQL database.&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;MySQL Connector/Net&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;An ADO.NET provider that allows access &amp;nbsp;from the .NET platform using the network&amp;nbsp;protocol used by the MySQL database.&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;MySQL Connector/MXJ&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; An MBean that allows seamlessly embedding the MySQL database server within the J2EE&amp;nbsp;environment.&amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&lt;span style="color: red;"&gt;• &amp;nbsp;MySQL Connector/PHP (New to the MySQL family of Connectors)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For connecting to MYSQL from PHP on Windows (not necessary for Unix variants).&amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 13px;"&gt;&lt;marquee&gt;&lt;span style="color: red;"&gt;&lt;a href="http://www.mysql.com/products/connector/" target="_blank"&gt;To download Drivers click here&lt;/a&gt;&lt;/span&gt;&lt;/marquee&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-2848280692256159806?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/2848280692256159806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/mysql-introducton.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/2848280692256159806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/2848280692256159806'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/mysql-introducton.html' title='MySQL INTRODUCTON'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-347761626882768812</id><published>2012-01-04T11:30:00.000-08:00</published><updated>2012-01-04T23:27:15.360-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tags'/><category scheme='http://www.blogger.com/atom/ns#' term='web components'/><category scheme='http://www.blogger.com/atom/ns#' term='web design'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML element'/><category scheme='http://www.blogger.com/atom/ns#' term='web developer'/><category scheme='http://www.blogger.com/atom/ns#' term='web designer'/><category scheme='http://www.blogger.com/atom/ns#' term='html tags'/><category scheme='http://www.blogger.com/atom/ns#' term='web'/><category scheme='http://www.blogger.com/atom/ns#' term='html'/><category scheme='http://www.blogger.com/atom/ns#' term='sample html'/><category scheme='http://www.blogger.com/atom/ns#' term='how html works'/><title type='text'>HTML Tags</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="color: red; font-size: x-large;"&gt;HTML Tags&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;span style="color: red;"&gt;What are HTML tags? &lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt; &amp;nbsp;HTML tags are used to mark-up HTML elements&amp;nbsp;&lt;/li&gt;&lt;li&gt; &amp;nbsp;HTML tags are surrounded by the two characters &amp;lt; and &amp;gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt; &amp;nbsp;The surrounding characters are called angle brackets&amp;nbsp;&lt;/li&gt;&lt;li&gt; &amp;nbsp;HTML tags normally come in pairs like &amp;lt;b&amp;gt; and &amp;lt;/b&amp;gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt; &amp;nbsp;The first tag in a pair is the start tag, the second tag is the end tag&amp;nbsp;&lt;/li&gt;&lt;li&gt; &amp;nbsp;The text between the start and end tags is the element content&amp;nbsp;&lt;/li&gt;&lt;li&gt; &amp;nbsp;HTML tags are not case sensitive, &amp;lt;b&amp;gt; means the same as &amp;lt;B&amp;gt;&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="color: red; font-size: large;"&gt;Logical vs. Physical Tags &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;In HTML there are both logical tags and physical tags. Logical tags are designed to describe (to the&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;browser) the enclosed text's meaning. An example of a logical tag is the &amp;lt;strong&amp;gt; &amp;lt;/strong&amp;gt; tag. By&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;placing text in between these tags you are telling the browser that the text has some greater&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;importance. By default all browsers make the text appear bold when in between the &amp;lt;strong&amp;gt; and&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;/strong&amp;gt; tags.&amp;nbsp;&lt;/div&gt;&lt;br /&gt;Physical tags on the other hand provide specific instructions on how to display the text they enclose.&lt;br /&gt;Examples of physical tags include: &lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt; &amp;nbsp;&amp;lt;b&amp;gt;: Makes the text bold. &amp;nbsp;&lt;/li&gt;&lt;li&gt; &amp;nbsp;&amp;lt;big&amp;gt;: Makes the text usually one size bigger than what's around it. &amp;nbsp;&lt;/li&gt;&lt;li&gt; &amp;nbsp;&amp;lt;i&amp;gt;: Makes text italic.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;Physical tags were invented to add style to HTML pages because style sheets were not around, though&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;the original intention of HTML was to not have physical tags. Rather than use physical tags to style&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;your HTML pages, you should use style sheets.&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red; font-size: large;"&gt;HTML Elements&amp;nbsp;&lt;/span&gt;&lt;br /&gt;Remember the HTML example from the previous page:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&amp;lt;html&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&amp;lt;head&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&amp;lt;title&amp;gt;My First Webpage&amp;lt;/title&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&amp;lt;/head&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&amp;lt;body&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;This is my first homepage. &amp;lt;b&amp;gt;This text is bold&amp;lt;/b&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&amp;lt;/body&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&amp;lt;/html&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;This is an HTML element:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;b&amp;gt;This text is bold&amp;lt;/b&amp;gt; &lt;br /&gt;&lt;br /&gt;The HTML element begins with a start tag: &amp;lt;b&amp;gt;&lt;br /&gt;The content of the HTML element is: This text is bold&lt;br /&gt;The HTML element ends with an end tag: &amp;lt;/b&amp;gt;&lt;br /&gt;&lt;br /&gt;The purpose of the &amp;lt;b&amp;gt; tag is to define an HTML element that should be displayed as bold.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;This is also an HTML element:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;body&amp;gt; &lt;br /&gt;This is my first homepage. &amp;lt;b&amp;gt;This text is bold&amp;lt;/b&amp;gt; &lt;br /&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;br /&gt;This HTML element starts with the start tag &amp;lt;body&amp;gt;, and ends with the end tag &amp;lt;/body&amp;gt;. The purpose&lt;br /&gt;of the &amp;lt;body&amp;gt; tag is to define the HTML element that contains the body of the HTML document.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;Nested Tags &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You may have noticed in the example above, the &amp;lt;body&amp;gt; tag also contains other tags, like the &amp;lt;b&amp;gt; tab.&lt;br /&gt;When you enclose an element in with multiple tags, the last tag opened should be the first tag closed.&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;&amp;lt;em&amp;gt;This is NOT the proper way to close nested tags.&amp;lt;/p&amp;gt;&amp;lt;/em&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;&amp;lt;em&amp;gt;This is the proper way to close nested tags. &amp;lt;/em&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;Why Use Lowercase Tags?&amp;nbsp;&lt;/span&gt;&lt;br /&gt;You may notice we've used lowercase tags even though I said that HTML tags are not case sensitive.&lt;br /&gt;&amp;lt;B&amp;gt; means the same as &amp;lt;b&amp;gt;. The World Wide Web Consortium (W3C), the group responsible for&lt;br /&gt;developing web standards, recommends lowercase tags in their HTML 4 recommendation, and XHTML&lt;br /&gt;(the next generation HTML) requires lowercase tags.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;Tag Attributes&amp;nbsp;&lt;/span&gt;&lt;br /&gt;Tags can have attributes. Attributes can provide additional information about the HTML elements on&lt;br /&gt;your page. The &amp;lt;tag&amp;gt; tells the browser to do something, while the attribute tells the browser how to&lt;br /&gt;do it. For instance, if we add the bgcolor attribute, we can tell the browser that the background color&lt;br /&gt;of your page should be blue, like this: &amp;lt;body bgcolor="blue"&amp;gt;. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This tag defines an HTML table: &amp;lt;table&amp;gt;. With an added border attribute, you can tell the browser that&lt;br /&gt;the table should have no borders: &amp;lt;table border="0"&amp;gt;. Attributes always come in name/value pairs&lt;br /&gt;like this: name="value". Attributes are always added to the start tag of an HTML element and the&lt;br /&gt;value is surrounded by quotes.&lt;br /&gt;&lt;br /&gt;Quote Styles, "red" or 'red'?&lt;br /&gt;Attribute values should always be enclosed in quotes. Double style quotes are the most common, but&lt;br /&gt;single style quotes are also allowed. In some rare situations, like when the attribute value itself&lt;br /&gt;contains quotes, it is necessary to use single quotes:&lt;br /&gt;&lt;br /&gt;name='George "machine Gun" Kelly'&lt;br /&gt;For a complete list of tags, visit &lt;a href="http://w3c.org/"&gt;W3C.org&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red; font-size: large;"&gt;Basic HTML Tags&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The most important tags in HTML are tags that &amp;nbsp;define headings, paragraphs and line breaks.&lt;br /&gt;&lt;br /&gt;Basic HTML Tags&lt;br /&gt;&lt;br /&gt;&lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th&gt;Tag&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;lt;html&amp;gt;&lt;/td&gt;&lt;td&gt;Defines an HTML document&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;lt;body&amp;gt;&lt;/td&gt;&lt;td&gt;Defines the document's body&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;lt;h1&amp;gt; to &amp;lt;h6&amp;gt;&lt;/td&gt;&lt;td&gt;Defines header 1 to header 6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;lt;p&amp;gt;&lt;/td&gt;&lt;td&gt;Defines a paragraph &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;lt;br&amp;gt;&lt;/td&gt;&lt;td&gt;Inserts a single line break&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;lt;hr&amp;gt;&lt;/td&gt;&lt;td&gt;Defines a horizontal rule&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;lt;!--&amp;gt;&lt;/td&gt;&lt;td&gt;Defines a comment&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Headings&lt;br /&gt;Headings are defined with the &amp;lt;h1&amp;gt; to &amp;nbsp;&amp;lt;h6&amp;gt; tags. &amp;lt;h1&amp;gt; defines the largest heading while &amp;lt;h6&amp;gt; defines&lt;br /&gt;the smallest.&lt;br /&gt;&amp;lt;h1&amp;gt;This is a heading&amp;lt;/h1&amp;gt; &lt;br /&gt;&amp;lt;h2&amp;gt;This is a heading&amp;lt;/h2&amp;gt; &lt;br /&gt;&amp;lt;h3&amp;gt;This is a heading&amp;lt;/h3&amp;gt; &lt;br /&gt;&amp;lt;h4&amp;gt;This is a heading&amp;lt;/h4&amp;gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;h5&amp;gt;This is a heading&amp;lt;/h5&amp;gt; &lt;br /&gt;&amp;lt;h6&amp;gt; This is a heading&amp;lt;/h6&amp;gt;&lt;br /&gt;&lt;br /&gt;HTML automatically adds an extra blank line before and after a headin g. A useful heading attribute is&lt;br /&gt;align.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;h5 align="left"&amp;gt;I can align headings &amp;lt;/h5&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;h5 align="center"&amp;gt;This is a centered heading &amp;lt;/h5&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;h5 align="right" &amp;gt;This is a heading aligned to the right &amp;lt;/h5&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red; font-size: large;"&gt;Paragraphs&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Paragraphs are defined with the &amp;lt;p&amp;gt; &amp;nbsp;tag. Think of a paragraph as a bl ock of text. You can use the align&lt;br /&gt;attribute with a paragraph tag as well.&lt;br /&gt;&lt;br /&gt;&amp;lt;p &amp;nbsp;align="left"&amp;gt;This is a paragraph&amp;lt;/p&amp;gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;p &amp;nbsp;align="center"&amp;gt;this is another paragraph&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: yellow;"&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;Important:&lt;/span&gt; You must indicate paragraphs with &amp;lt;p&amp;gt; &amp;nbsp;elements. A browser ignores any&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: yellow;"&gt;indentations or blank lines in the source text. Without &amp;nbsp;&amp;lt;p&amp;gt; &amp;nbsp;elements, the document becomes&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: yellow;"&gt;one large paragraph. HTML automatically adds an extra blank line before and after a paragraph.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red; font-size: large;"&gt;Line Breaks&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The &amp;lt;br&amp;gt; tag is used when you want to start a new line, &amp;nbsp;but don't want to start a new paragraph. The&lt;br /&gt;&amp;lt;br&amp;gt; tag forces a line break wherever you place it. It is similar to single spacing in a document.&lt;br /&gt;&lt;br /&gt;This Code &amp;nbsp; &amp;nbsp;Would Display&lt;br /&gt;&amp;lt;p&amp;gt;This &amp;lt;br&amp;gt; is a para&amp;lt;br&amp;gt; graph with&lt;br /&gt;line breaks&amp;lt;/p&amp;gt;&lt;br /&gt;This &lt;br /&gt;is a para&lt;br /&gt;graph with line breaks&lt;br /&gt;&lt;br /&gt;The &amp;lt;br&amp;gt; tag has no closing tag.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red; font-size: large;"&gt;Horizontal Rule&lt;/span&gt;&lt;br /&gt;The &amp;lt;hr&amp;gt; element is used for horizontal rules that &amp;nbsp;act as dividers between sections, like this: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The horizontal rule does not have a closing tag. It takes attributes such as align and width. For&lt;br /&gt;instance:&lt;br /&gt;&lt;br /&gt;This Code &amp;nbsp;Would Display &lt;br /&gt;&amp;lt;hr width="50%" align="center"&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red; font-size: large;"&gt;Comments in HTML &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The comment tag is used to insert a comment in &amp;nbsp;the HTML source code. A comment can be placed&lt;br /&gt;anywhere in the document and the browser will ignore everything inside the brackets. You can use&lt;br /&gt;comments to write notes to yourself, or write a helpful message to someone &amp;nbsp;looking at your source&lt;br /&gt;code.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Notice you don't see the text between the tags &amp;nbsp;&amp;lt;!-- and &amp;nbsp;--&amp;gt; . If you look at the source code, you&lt;br /&gt;would see the comment. To view the source code for this page, in your browser window, select View&lt;br /&gt;and then select Source . &lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: yellow;"&gt;Note: You need an exclamation po int after the opening bracket &amp;nbsp;&amp;lt;!-- but not before the closing&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: yellow;"&gt;bracket --&amp;gt; .&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: yellow;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;HTML automatically adds an extra blank line before and after some &amp;nbsp;elements, like before and after a&lt;br /&gt;paragraph, and before and after a heading. If you wa nt to insert blank lines into your document, use&lt;br /&gt;the &amp;nbsp;&amp;lt;br&amp;gt; tag. &lt;br /&gt;&lt;br /&gt;&lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th&gt;This Code&lt;/th&gt; &lt;th&gt;Would Display&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;lt;p&amp;gt; This html comment would &amp;nbsp;&amp;lt;!-- This&amp;nbsp;&lt;/td&gt;&lt;td&gt;This HTML comment would be displayed likethis.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Try It Out! &lt;br /&gt;Open your text editor and type the following text:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;&amp;lt;html&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;&amp;lt;head&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;&amp;lt;title&amp;gt;My First Webpage&amp;lt;/title&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;&amp;lt;/head&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;&amp;lt;body&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;&amp;lt;h1 align="center"&amp;gt;My First Webpage&amp;lt;/h1&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;&amp;lt;p&amp;gt;Welcome to my first web page. I am writing this page using a text editor and plain&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;old html.&amp;lt;/p&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;&amp;lt;p&amp;gt;By learning html, I'll be able to create web pages like a pro....&amp;lt;br&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;which I am of course.&amp;lt;/p&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;&amp;lt;/body&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;&amp;lt;/html&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Save the page as mypage2.html. Open the file in your Internet browser. To view how the page&lt;br /&gt;should look, visit this web page: &amp;nbsp;http://profdevtrain.austincc.edu/html/mypage2.html&lt;br /&gt;&lt;marquee&gt;&lt;a href="http://www.austincc.edu/hr/profdev/eworkshops/docs/HTML_Basics.pdf" target="_blank"&gt;for more html details click here&lt;/a&gt;&lt;/marquee&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-347761626882768812?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/347761626882768812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/html-tags.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/347761626882768812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/347761626882768812'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/html-tags.html' title='HTML Tags'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-2455014279803947496</id><published>2012-01-03T22:21:00.000-08:00</published><updated>2012-01-03T22:37:31.661-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='html introduction'/><category scheme='http://www.blogger.com/atom/ns#' term='html'/><category scheme='http://www.blogger.com/atom/ns#' term='sample html'/><category scheme='http://www.blogger.com/atom/ns#' term='how html works'/><category scheme='http://www.blogger.com/atom/ns#' term='what is html'/><title type='text'>HTML INTRODUCTION</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;u&gt;&lt;span style="color: red;"&gt;What is an html File?&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HTML is a format that tells a computer how to display a web page. The documents themselves are plain text files with special "tags" or codes that a web browser uses to interpret and display information on your computer screen.&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&amp;nbsp;HTML stands for Hyper Text Markup Language&lt;/li&gt;&lt;li&gt;&amp;nbsp;An HTML file is a text file containing small markup tags&lt;/li&gt;&lt;li&gt;&amp;nbsp;The markup tags tell the Web browser how to display the page&lt;/li&gt;&lt;li&gt;&amp;nbsp;An HTML file must have an htm or html file extension&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-size: large;"&gt;&lt;span style="color: red;"&gt;Try It?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;Open your text editor and type the following text:&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;&amp;lt;title&amp;gt;My First Webpage&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;This is my first homepage. &amp;lt;b&amp;gt;This text is bold&amp;lt;/b&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Save the file as mypage.html. Start your Internet browser. Select Open (or Open Page) in the File menu of your browser. A dialog box will appear. Select Browse (or Choose File) and locate the html file you just created - mypage.html - select it and click Open. Now you should see an address in the dialog box, for example C:\MyDocuments\mypage.html. Click OK, and the browser will display the page. To view how the page should look, visit this web page: http://profdevtrain.austincc.edu/html/mypage.html&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-size: large;"&gt;&lt;span style="color: red;"&gt;Example Explained&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What you just made is a skeleton html document. This is the minimum required information for a web document and all web documents should contain these basic components. The first tag in your html document is &amp;lt;html&amp;gt;. This tag tells your browser that this is the start of an html document. The last tag in your document is &amp;lt;/html&amp;gt;. This tag tells your browser that this is the end of the html document.&lt;br /&gt;The text between the &amp;lt;head&amp;gt; tag and the &amp;lt;/head&amp;gt; tag is header information. Header information is not displayed in the browser window.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;The text between the &amp;lt;title&amp;gt; tags is the title of your document. The &amp;lt;title&amp;gt; tag is used to uniquely identify each document and is also displayed in the title bar of the browser window.&lt;br /&gt;The text between the &amp;lt;body&amp;gt; tags is the text that will be displayed in your browser.&lt;br /&gt;The text between the &amp;lt;b&amp;gt; and &amp;lt;/b&amp;gt; tags will be displayed in a bold font.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size: large;"&gt;&lt;span style="color: red;"&gt;HTM or HTML Extension?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you save an HTML file, you can use either the .htm or the .html extension. The .htm extension comes from the past when some of the commonly used software only allowed three letter extensions. It is perfectly safe to use either .html or .htm, but be consistent. mypage.htm and mypage.html are treated as different files by the browser.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;span style="color: red; font-size: large;"&gt;How to View HTML Source&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A good way to learn HTML is to look at how other people have coded their html pages. To find out, simply click on the View option in your browsers toolbar and select Source or Page Source. This will open a window that shows you the actual HTML of the page. Go ahead and view the source html for this page.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;a href="http://html5easy.blogspot.com/" target="_blank"&gt;IF YOU WANT TO KNOW MORE ABOUT HTML CLICK HERE&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-2455014279803947496?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/2455014279803947496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/html-introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/2455014279803947496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/2455014279803947496'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/html-introduction.html' title='HTML INTRODUCTION'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-7447550227515902870</id><published>2012-01-03T22:19:00.000-08:00</published><updated>2012-01-03T22:19:43.852-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='need tools for web'/><category scheme='http://www.blogger.com/atom/ns#' term='designer tools dor web'/><category scheme='http://www.blogger.com/atom/ns#' term='web design'/><category scheme='http://www.blogger.com/atom/ns#' term='web development tools'/><category scheme='http://www.blogger.com/atom/ns#' term='designer tools for web'/><category scheme='http://www.blogger.com/atom/ns#' term='web designer'/><category scheme='http://www.blogger.com/atom/ns#' term='how to build a website'/><category scheme='http://www.blogger.com/atom/ns#' term='web'/><category scheme='http://www.blogger.com/atom/ns#' term='WEB DESIGN TEMPLATE'/><title type='text'></title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h3 id="threeWays"&gt;&lt;span style="color: red;"&gt;SO LETS START... HOW CAN DO THIS? THERE ARE THREE WAYS &lt;/span&gt;&lt;/h3&gt;&lt;h4 id="templates"&gt;1. &lt;span style="color: #741b47;"&gt;Use a pre-made template: WHAT IS A&lt;/span&gt; &lt;a href="http://www.freewebtemplates.com/" target="_blank"&gt;WEB DESIGN TEMPLATE&lt;/a&gt;?&lt;/h4&gt;A web site design template is a pre-made website design template which can be customized to reflect your company’s branding. Website design templates can be found in various formats like Photoshop and HTML. Many times, these templates are compatible with HTML editors like GoLive, FrontPage, and Dreamweaver. &lt;br /&gt;Web site templates can be very useful; they can be used by experienced web designers to ‘jump-start’ the creation of a website. They are also a way for people to put out great-looking web sites quickly with little or no knowledge of HTML and web design.&lt;a href="http://www.freewebtemplates.com/" target="_blank"&gt;CLICK HERE TO GET FREE TEMPLATES&lt;/a&gt;&lt;br /&gt;&lt;h4 id="htmlEditor"&gt;2. &lt;span style="color: #4c1130;"&gt;Use an HTML editor like FrontPage or Dreamweaver:&lt;/span&gt;&lt;/h4&gt;HTML editors make building web pages feel like (to a certain extent) creating a document in Microsoft Word … it’s made pretty easy. But the downside is that you lose a certain amount of control of what you’re doing and in some cases become dependent on the program.&lt;br /&gt;&lt;h4 id="handCode"&gt;3. &lt;span style="color: #4c1130;"&gt;Hand-code your HTML in a text editor like Notepad:&lt;/span&gt;&lt;/h4&gt;That means you type in the HTML code yourself. This is the approach we are going to use here, because it’s the quickest way to learn how to build web pages, and it is arguably the best way because you have the most control over what you’re doing.&lt;br /&gt;Ok, now that we know the advantages of hand-coding web pages, let’s jump into just the bare minimum of theory, then we will build our first web page!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-7447550227515902870?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/7447550227515902870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/so-lets-start.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/7447550227515902870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/7447550227515902870'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/so-lets-start.html' title=''/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-2143077564865098349</id><published>2012-01-03T01:20:00.000-08:00</published><updated>2012-01-03T01:45:23.953-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='need tools for web'/><category scheme='http://www.blogger.com/atom/ns#' term='web components'/><category scheme='http://www.blogger.com/atom/ns#' term='web development tools'/><category scheme='http://www.blogger.com/atom/ns#' term='designer tools for web'/><category scheme='http://www.blogger.com/atom/ns#' term='web tools'/><title type='text'>TOOLS NEED FOR BUILDIND A WEB</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h3&gt;&amp;nbsp;&lt;a href="http://getfirebug.com/"&gt;Firebug&lt;/a&gt;&lt;/h3&gt;&lt;a href="http://getfirebug.com/"&gt;&lt;img alt="Firebug - screen shot." height="260" src="http://images.sixrevisions.com/2009/03/14-05_firebug.png" width="550" /&gt;&lt;/a&gt;&lt;br /&gt;Firebug is a free, open source in-browser web development  tool for  the Firefox web browser. It’s many features include: on-the-fly HTML   and CSS editing for tweaking or debugging, a Console for logging,  analyzing and  debugging JavaScript, and an intuitive Document Object  Model (DOM) inspection tool  to help you quickly see how the elements of  a web page relates to one another.&lt;br /&gt;Firebug’s popularity is so immense it’s one of the few  Firefox extensions that have its own extensions (like &lt;a href="http://developer.yahoo.com/yslow/"&gt;YSlow&lt;/a&gt; and FirePHP)!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;&amp;nbsp;&lt;a href="http://www.adobe.com/products/dreamweaver/"&gt;Dreamweaver&lt;/a&gt;&lt;/h3&gt;&lt;a href="http://www.adobe.com/products/dreamweaver/"&gt;&lt;img alt="Dreamweaver - screen shot." height="260" src="http://images.sixrevisions.com/2009/03/14-02_dreamweaver.png" width="550" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;i&gt;Adobe Dreamweaver&lt;/i&gt; is a commercial application for web  development that’s available for the Mac  and Windows operating systems.  Its featured-packed suite of tools and options  include: syntax  highlighting and very smart Code Hinting, a built-in FTP client,   project management and workflow options that make team work effortless,  and  Live View – which shows you a preview of your source code.  Dreamweaver tightly  integrates with other popular Adobe products such  as Photoshop, allowing you to  share &lt;a href="http://www.adobe.com/products/photoshop/pop_smart.html" title="An Adobe video on using Smart Objects."&gt;Smart Objects&lt;/a&gt; for quick and  easy updating and editing of graphics components&lt;br /&gt;&lt;h3&gt;&amp;nbsp;&lt;a href="http://developer.yahoo.com/yui/grids/builder/" title="CSS Grid Builder"&gt;CSS Grid Builder&lt;/a&gt;&lt;/h3&gt;&lt;img alt="CSS Grid Builder - Screenshot" height="200" src="http://images.sixrevisions.com/2008/05/14-01_cssgridbuilder.jpg" width="450" /&gt;&lt;br /&gt;&lt;span id="more-154"&gt;&lt;/span&gt;&lt;br /&gt;&lt;i&gt;CSS Grid Builder&lt;/i&gt; is  an online GUI for customizing the &lt;a href="http://developer.yahoo.com/yui/grids/" title="Yahoo! UI Library: Grids CSS"&gt;YUI Grids CSS&lt;/a&gt;  – a lightweight CSS framework  developed by Yahoo! that comes with over  1000 page layout combinations. The CSS  Grid Builder allows you to  rapidly generate a CSS-based, web-standards  compliant page layout in a  matter of minutes (or even seconds). Once you’ve got  the page layout  the way you want it, all you have to do is press "&lt;i&gt;Show Code&lt;/i&gt;" and it  generates the HTML for you. &lt;br /&gt;You don’t even have to host the CSS file on your  web server (saving  you some bandwidth and maintenance hassles), the generated  code links  to the appropriate stylesheet found on Yahoo!’s Developer Network API.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;&amp;nbsp;&lt;a href="http://clean-ajax.sourceforge.net/index.php?tab=about"&gt;Clean AJAX&lt;/a&gt;&lt;/h3&gt;&lt;img alt="Clean AJAX - screenshot" height="200" src="http://images.sixrevisions.com/2008/05/14-07_clean_ajax.jpg" width="450" /&gt;&lt;br /&gt;&lt;i&gt;Clean AJAX&lt;/i&gt;  speeds up Ajax development by cutting down the   amount of code you have to write (and rewrite), giving you access to  common and  proven design patterns used in Ajax  applications. Clean  AJAX  can be used with any server-side technology such as PHP, RoR, and  .NET because it’s  JavaScript-based. Check out the &lt;a href="http://clean-ajax.sourceforge.net/index.php?tab=demos" title="Clean AJAX demo page"&gt;demo page &lt;/a&gt;so you can  see Clean AJAX in action.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Notable mentions&lt;/h4&gt;Here are other tools that were voted on that are worth a quick  mention.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.adobe.com/products/flash/"&gt;Adobe Flash&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://chrispederick.com/work/web-developer/"&gt;Web  Developer (Firefox extension)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.aptana.com/"&gt;Aptana&lt;/a&gt;&lt;/li&gt;&lt;li&gt;paper and pen/pencil (for paper prototyping/sketching).&lt;/li&gt;&lt;li&gt;&lt;a href="http://macrabbit.com/cssedit/"&gt;CSSEdit&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://notepad-plus.sourceforge.net/uk/site.htm"&gt;Notepad++&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.gimp.org/"&gt;GIMP&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-2143077564865098349?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/2143077564865098349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/tools-need-for-buildind-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/2143077564865098349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/2143077564865098349'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/tools-need-for-buildind-web.html' title='TOOLS NEED FOR BUILDIND A WEB'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2401702757274511569.post-1472529022290368264</id><published>2012-01-03T01:05:00.000-08:00</published><updated>2012-01-03T23:20:19.821-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='website using php'/><category scheme='http://www.blogger.com/atom/ns#' term='php and mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='web design'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='web developer'/><category scheme='http://www.blogger.com/atom/ns#' term='website'/><category scheme='http://www.blogger.com/atom/ns#' term='web designer'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='how to build a website'/><category scheme='http://www.blogger.com/atom/ns#' term='web'/><title type='text'>website introduction</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h2 style="color: red;"&gt;&lt;u&gt;Get started now – no experience required!&lt;/u&gt;&lt;/h2&gt;How-to-build-websites.com is designed for total beginners … and for  people who use programs like Dreamweaver, FrontPage, and other wysiwyg  programs (wysiwyg stands for: “What You See Is What You Get”) … and now  want to learn what’s going on ‘behind the scenes’.&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;h3 id="whatIsWeb" style="color: red;"&gt;What is the web?&lt;/h3&gt;In a nutshell, the web is a whole bunch of interconnected computers  talking to one another. The computers (on the web) are typically  connected by phone lines, digital satellite signals, cables, and other  types of data-transfer mechanisms. A ‘data-transfer mechanism’ is a  nerd’s way of saying: a way to move information from point A to point B  to point C and so on. &lt;br /&gt;The computers that make up the web can be connected all the time  (24/7), or they can be connected only periodically. The computers that  are connected all the time are typically called a ‘server’. Servers are  computers just like the one you’re using now to read this article, with  one major difference, they have a special software installed called  ‘server’ software.&lt;br /&gt;&lt;br /&gt;&lt;h3 id="function" style="color: red;"&gt;What is the function of server software / programs? &lt;/h3&gt;Server software is created to ‘serve’ web pages and web sites.  Basically, the server computer has a bunch of web sites loaded on it and  it just waits for people (via web browsers) to request or ask for a  particular page. When the browser requests a page the server sends it  out. &lt;br /&gt;&lt;h3 id="findWebsite" style="color: red;"&gt;How does the web surfer find a web site? &lt;/h3&gt;The short answer is: by typing in the URL, or in other words, the web  site address. So for example, if you wanted to find the web site &lt;a href="http://www.w3school.com/"&gt;www.w3school.com&lt;/a&gt;,  you would type in the address into your web browser’s address bar or  maybe use your ‘favorites’ or ‘bookmarks’ link to Killersites. &lt;br /&gt;There are other ways to find web sites (like search engines,) but  behind the scenes web sites are all being found by going to the web  site’s official address. That brings us our last nerd detail: how does a  website get an official address so that the rest of the web can find  it? &lt;br /&gt;&lt;h3 id="registerDomain" style="color: red;"&gt;Registering your domain name &lt;/h3&gt;If you ever wondered what the heck registering a domain was all about  … you probably figured it out by now! But just in case – registering a  domain name gets you an official address for your web site on the World  Wide Web. With this ‘official’ address, the rest of the web can find  you. &lt;br /&gt;Like your home address is unique in the real world, there also can’t  be any duplicate addresses on the Internet, otherwise no one would know  where to go! In other words, &lt;b&gt;domain names are unique addresses on the web&lt;/b&gt;. &lt;br /&gt;&lt;h4 id="costOfDomain" style="color: red;"&gt;Why does registering a domain name cost money? &lt;/h4&gt;If you want to have your own unique address on the web, your own  domain name, it will cost a few bucks for each year you want to ‘own’  the name. The cost of registering a domain name ranges from less than  $10 USD to about $30 USD per year. You can register a domain from 1 to  10 years. &lt;br /&gt;The reason for the cost is  that the central ‘address book’ of all  the world’s domain names needs to be updated – somebody’s got to pay for  that! You may have noticed that I just snuck in a little extra piece of  information: the giant ‘web address book’ of domains. &lt;br /&gt;That leads us to our last bit of nerd information: when you type in a  website’s domain name or click on a link that takes you to that domain  name, your browser starts asking servers where that particular domain  name is sitting (on the web) and the servers are then able to tell the  browser where to go by referring to the giant address book I mentioned  above. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2401702757274511569-1472529022290368264?l=urwebsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urwebsite.blogspot.com/feeds/1472529022290368264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://urwebsite.blogspot.com/2012/01/website-introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/1472529022290368264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2401702757274511569/posts/default/1472529022290368264'/><link rel='alternate' type='text/html' href='http://urwebsite.blogspot.com/2012/01/website-introduction.html' title='website introduction'/><author><name>sunel tr</name><uri>https://profiles.google.com/106532236094080325871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ApcZ3lOQ_zw/AAAAAAAAAAI/AAAAAAAABmA/NzB2oJk7W9k/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>
