<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CkQER306eCp7ImA9WhRRFEk.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830</id><updated>2011-11-27T16:31:46.310-08:00</updated><category term="MYSQL" /><category term="PHP" /><category term="VBScript Tutorial" /><category term="JAVASCRIPT" /><category term="links" /><title>LEARN COURSES ONLINE</title><subtitle type="html">HTML,JAVA,MYSQL,PHP,AJAX

Make Your own website</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://learncoursesonline.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>28</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/LearnCoursesOnline" /><feedburner:info uri="learncoursesonline" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;A0cHR3s9fyp7ImA9WxNRFEU.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-5294488660677767064</id><published>2009-09-09T02:25:00.000-07:00</published><updated>2009-09-09T02:37:16.567-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-09T02:37:16.567-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="VBScript Tutorial" /><title>While Loop (VBscript)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/aaM4dLdRjp-zr1TM29KiKNUYx-4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aaM4dLdRjp-zr1TM29KiKNUYx-4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/aaM4dLdRjp-zr1TM29KiKNUYx-4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aaM4dLdRjp-zr1TM29KiKNUYx-4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;  The VBScript While Loop executes code while a condition is true.&lt;br /&gt;&lt;/span&gt;   &lt;/p&gt;&lt;p&gt;&lt;span style="font-size:130%;"&gt;Example:&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;span style="font-size:130%;"&gt;&lt;br /&gt;  &lt; type="text/vbscript"&gt;&lt;br /&gt;    Dim numb&lt;br /&gt;    numb = 0&lt;br /&gt;    While numb &lt;= 8&lt;/span&gt;&lt;/p&gt; &lt;pre&gt;&lt;span style="font-size:130%;"&gt;    document.write("Number Is: " &amp;amp; numb &amp;amp; vbCRLF )&lt;/span&gt;&lt;/pre&gt; &lt;p&gt;&lt;span style="font-size:130%;"&gt;numb = numb + 1&lt;br /&gt;    Wend&lt;br /&gt;       document.write("End of While!")&lt;br /&gt;  &lt;  /script &gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:130%;"&gt;   This results is:&lt;br /&gt;&lt;/span&gt;   &lt;/p&gt;&lt;p&gt;&lt;span style="font-size:130%;"&gt;Number Is: 0&lt;br /&gt;  Number Is: 1&lt;br /&gt;  Number Is: 2&lt;br /&gt;  Number Is: 3&lt;br /&gt;  Number Is: 4&lt;br /&gt;  Number Is: 5&lt;br /&gt;  Number Is: 6&lt;br /&gt;  Number Is: 7&lt;br /&gt;  Number Is: 8&lt;br /&gt;  End of While! &lt;/span&gt;&lt;/p&gt; &lt;ol&gt;&lt;li&gt;&lt;span style="font-size:130%;"&gt;We       started by declaring a variable called "numb" and setting it to       0&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:130%;"&gt;We then opened a while loop and inserted our condition. Our condition checks if the current value of the numb variable is less than or equal to 8.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:130%;"&gt;This is followed by code to execute while the condition is true. In this case, we are simply, outputting the current value of numb, preceded by some text.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:130%;"&gt;We       then increment the value by 1.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:130%;"&gt;When the browser reaches the closing curly brace, if the condition is still true, it goes back to the first curly brace and executes the code again. By now, the numb variable has been incremented by 1. If the condition is not true (i.e. the variable is greater than 8), it exits from the loop, and continues on with the rest of the code&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-5294488660677767064?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/R66H3Tf-exA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/5294488660677767064/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/while-loop-vbscript.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/5294488660677767064?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/5294488660677767064?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/R66H3Tf-exA/while-loop-vbscript.html" title="While Loop (VBscript)" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/while-loop-vbscript.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkcAR3c6eip7ImA9WxNRFEU.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-4902635597283518458</id><published>2009-09-09T02:19:00.000-07:00</published><updated>2009-09-09T02:20:46.912-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-09T02:20:46.912-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="VBScript Tutorial" /><title>For Next Loop (VBscript)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dMVvcxjdFxsrvgxWTTQ4iX-kkCQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dMVvcxjdFxsrvgxWTTQ4iX-kkCQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dMVvcxjdFxsrvgxWTTQ4iX-kkCQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dMVvcxjdFxsrvgxWTTQ4iX-kkCQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family:Times New Roman;font-size:130%;"&gt; &lt;p&gt;&lt;strong&gt;For...Next Loop&lt;/strong&gt;&lt;br /&gt;VBScript uses the For…Next structure for creating incremental loops.  There are a few keyword variations that allow some flexibility in how the loop is executed.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;br /&gt;  For variable = intStart To intEnd [&lt;em&gt;Step&lt;/em&gt; &lt;em&gt;intIncrement&lt;/em&gt;]&lt;br /&gt;        ' Code to be repeated&lt;br /&gt;  Next&lt;/p&gt; &lt;p&gt;A basic For…Next statement is used to repeat a section of code a definite number of times. The following code will count to 5 and print each number.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Exampel:&lt;/strong&gt;&lt;br /&gt;  For x = 1 To 5&lt;br /&gt;     WScript.Echo x&lt;br /&gt;  Next&lt;/p&gt; &lt;p&gt;The For statement requires that you supply a counter variable such as “x.” You must also supply its starting and ending value. The Next statement will increment the counter variable and repeat the enclosed code until it is no longer within the specified range, resulting in an output like the following:&lt;br /&gt;  1&lt;br /&gt;  2&lt;br /&gt;  3&lt;br /&gt;  4&lt;br /&gt;  5&lt;/p&gt; &lt;p&gt;The For statement also accepts the Step keyword which can be used to change the increment value. You may supply a negative number to cause the counter to decrement. The following example will list all even numbers from 10 to 0.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br /&gt;  For x = 10 To 0 Step -2&lt;br /&gt;     Wscript.Echo x&lt;br /&gt;  Next&lt;/p&gt; &lt;p&gt;Make sure that your starting value is less than your ending value when incrementing and greater than it when decrementing in order to prevent errors.  The second output looks like this:&lt;br /&gt;  10&lt;br /&gt;  8&lt;br /&gt;  6&lt;br /&gt;  4&lt;br /&gt;  2&lt;br /&gt;  0&lt;br /&gt;  &lt;strong&gt;For Each…Next loop&lt;/strong&gt;&lt;br /&gt;Another variation of this loop is the For Each…Next loop.  This Each keyword will iterate through each element in a dictionary object, array, or collection.&lt;/p&gt; &lt;p&gt;arrWords = Array("Red", "Green", "Blue",  "Black", "White")&lt;br /&gt;  For Each strWord In arrWords&lt;br /&gt;     WScript.Echo strWord&lt;br /&gt;  Next&lt;/p&gt; &lt;p&gt;Using the For Each statement, we iterated through each element without having to specify the number explicitly. The first variable in this statement must be a reference to the array element followed by the In keyword and a variable representing the array. The resulting output makes this very evident.&lt;br /&gt;  Red&lt;br /&gt;  Green&lt;br /&gt;  Blue&lt;br /&gt;  Black&lt;br /&gt;  White&lt;/p&gt; &lt;p&gt;This same output can be generated using a simple For loop,  however, the code is much more complex.&lt;/p&gt; &lt;p&gt;For i = 0 To UBound(arrWords)&lt;br /&gt;     strWord = arrWords(i)&lt;br /&gt;     Wscript.Echo strWord&lt;br /&gt;  Next&lt;/p&gt; &lt;p&gt;In this example, we had to programmatically determine the number of elements in the array and then make a reference to each of them.  The For Each syntax is a much cleaner, quicker approach.&lt;/p&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-4902635597283518458?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/fMY8ys99DiE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/4902635597283518458/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/for-next-loop-vbscript.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/4902635597283518458?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/4902635597283518458?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/fMY8ys99DiE/for-next-loop-vbscript.html" title="For Next Loop (VBscript)" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/for-next-loop-vbscript.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU8NRnc8cSp7ImA9WxNRFEU.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-6989068186747699321</id><published>2009-09-09T02:15:00.000-07:00</published><updated>2009-09-09T02:18:17.979-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-09T02:18:17.979-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="VBScript Tutorial" /><title>Conditional Statements (VBscript)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wGl-wrUzI6tpwdNJvNw45b2W_LI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wGl-wrUzI6tpwdNJvNw45b2W_LI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/wGl-wrUzI6tpwdNJvNw45b2W_LI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wGl-wrUzI6tpwdNJvNw45b2W_LI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family:Times New Roman;font-size:130%;"&gt; &lt;p&gt;VBScript allows you to control how your scripts process data through the use of conditional and looping statements. By using conditional statements you can develop scripts that evaluate data and use criteria to determine what tasks to perform. Looping statements allow you to repetitively execute lines of a script. Each offers benefits to the script developer in the process of creating more complex and functional web pages.&lt;br /&gt;Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this. &lt;/p&gt; &lt;p&gt;&lt;strong&gt;if statement :&lt;/strong&gt;&lt;br /&gt;  if statement is used when you want to execute a set of code  when a condition is true.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;if...then...else statement :&lt;/strong&gt;&lt;br /&gt;  if…then…else statement is used when you want to select one  of two sets of lines to execute.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;if...then...elseif statement&lt;/strong&gt;&lt;strong&gt; : &lt;/strong&gt;&lt;br /&gt;  if...then...elseif  statement is used when you want to select one of many sets of lines to  execute.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;select case statement&lt;/strong&gt;&lt;strong&gt; :&lt;/strong&gt;&lt;br /&gt;  select case statement is used when you want to select one of  many sets of lines to execute&lt;/p&gt; &lt;p&gt;&lt;strong&gt;If....Then&lt;/strong&gt;&lt;br /&gt;  If you want to execute only &lt;strong&gt;one&lt;/strong&gt; statement when a  condition is true, you can write the code on one line:&lt;/p&gt; &lt;p&gt;if i&gt;0 Then msgbox "Positive Number"&lt;/p&gt; &lt;p&gt;If you want to execute more than one statement when a condition is true, you must put each statement on separate lines and end the statement with the keyword "End If": &lt;/p&gt; &lt;p&gt;if i&gt;0 Then&lt;br /&gt;     msgbox " Positive  Number"&lt;br /&gt;     i = i+1&lt;br /&gt;  end If&lt;/p&gt; &lt;p&gt;&lt;strong&gt;If....Then….Else&lt;/strong&gt;&lt;br /&gt;If you want to execute a statement if a condition is true and execute another statement if the condition is not true, you must add the "Else" keyword: &lt;/p&gt; &lt;p&gt;if i&gt;0 then&lt;br /&gt;     msgbox  "Positive Number"&lt;br /&gt;  else&lt;br /&gt;     msgbox "Negative  Number"&lt;br /&gt;  end If&lt;/p&gt; &lt;p&gt;The first block of code will be executed if the condition is  true, and the other block will be executed otherwise. &lt;/p&gt; &lt;p&gt;&lt;strong&gt;If....Then.....Elseif&lt;/strong&gt;&lt;br /&gt;  You can use the if...then...elseif statement if you want to  select one of many blocks of code to execute&lt;/p&gt; &lt;p&gt;if percentage&gt;=80 then&lt;br /&gt;     msgbox "Your Grade  is A."&lt;br /&gt;   elseif percentage&gt;=70  then&lt;br /&gt;     msgbox "Your Grade  is B."&lt;br /&gt;   elseif percentage&gt;=60  then&lt;br /&gt;     msgbox "Your  Grade is C."&lt;br /&gt;   else&lt;br /&gt;     msgbox "Your  Grade is D."&lt;br /&gt;  end If&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Select Case&lt;/strong&gt;&lt;br /&gt;The Select Case statement provides an alternative to the If..Then..Else statement, providing additional control and readability when evaluating complex conditions. It is well suited for situations where there are a number of possible conditions for the value being checked. Like the If statement the Select Case structure checks a condition, and based upon that condition being true, executes a series of statements.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;br /&gt;  select case payment&lt;br /&gt;   case "Cash"&lt;br /&gt;     msgbox "You  are going to pay cash"&lt;br /&gt;   case "Visa"&lt;br /&gt;     msgbox "You  are going to pay with visa"&lt;br /&gt;   case "AmEx"&lt;br /&gt;     msgbox "You  are going to pay with American Express"&lt;br /&gt;   case Else&lt;br /&gt;     msgbox "Unknown  method of payment"&lt;br /&gt;  end select&lt;/p&gt; &lt;p&gt;This is how it works: First we have a single expression (most often a variable), that is evaluated once. The value of the expression is then compared with the values for each Case in the structure. If there is a match, the block of code associated with that Case is executed.&lt;/p&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-6989068186747699321?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/1anTSTtwOIo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/6989068186747699321/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/conditional-statements-vbscript.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/6989068186747699321?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/6989068186747699321?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/1anTSTtwOIo/conditional-statements-vbscript.html" title="Conditional Statements (VBscript)" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/conditional-statements-vbscript.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUIFQXYzfip7ImA9WxNRFEU.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-6710461601120439387</id><published>2009-09-09T02:11:00.001-07:00</published><updated>2009-09-09T02:11:50.886-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-09T02:11:50.886-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="VBScript Tutorial" /><title>VBScript Procedures</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QhTxIwcMhgotp8ZnmFlk_3iw4Tc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QhTxIwcMhgotp8ZnmFlk_3iw4Tc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QhTxIwcMhgotp8ZnmFlk_3iw4Tc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QhTxIwcMhgotp8ZnmFlk_3iw4Tc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family:Times New Roman;font-size:130%;"&gt; &lt;p&gt;We have two kinds of procedures: The Sub procedure and the  Function procedure.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Sub procedure&lt;/strong&gt;&lt;br /&gt;  A sub procedure is a series of statements, enclosed by the  Sub and End Sub statements. It&lt;br /&gt;can perform actions, but does not return a value. It can take arguments that are passed to it by a calling procedure. Sub procedures without arguments, must include an empty set of parentheses ()&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br /&gt;  Sub mysub()&lt;br /&gt;   some statement(s)&lt;br /&gt;  End Sub&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br /&gt;  Sub mysub(arg1,arg2)&lt;br /&gt;   Statement(s)&lt;br /&gt;  End Sub &lt;/p&gt; &lt;p&gt;&lt;strong&gt;Function procedure&lt;/strong&gt;&lt;br /&gt;A function procedure is a series of statements, enclosed by the Function and End Function statements. It can perform actions and can return a value. Function procedures can take arguments that are passed to it by a calling procedure. Without arguments, must include an empty set of parentheses (). They returns a value by assigning a value to its name.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;br /&gt;  Function myfunction()&lt;br /&gt;  statement(s)&lt;br /&gt;  myfunction=some value&lt;br /&gt;  End Function&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;br /&gt;  Function myfunction(arg1,arg2)&lt;br /&gt;  Statement(s)&lt;br /&gt;  myfunction=some value&lt;br /&gt;  End Function&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Calling a Sub or  Function Procedure&lt;/strong&gt;&lt;br /&gt;  Function name is used to call a function procedure. When you  call a Function in your code, you do like this&lt;br /&gt;  Var_name = proc_name()&lt;/p&gt; &lt;p&gt;Here you call a Function called " proc_name", the  Function returns a value that will be stored in the variable " Var_name". &lt;/p&gt; &lt;p&gt;Calling a sub procedure you can use the following statement.&lt;br /&gt;  Call Proc_name(arguments)&lt;br /&gt;  Or, you can omit the Call statement&lt;br /&gt;Proc_name arguments&lt;/p&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-6710461601120439387?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/9jlNZfN4QMw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/6710461601120439387/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/vbscript-procedures.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/6710461601120439387?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/6710461601120439387?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/9jlNZfN4QMw/vbscript-procedures.html" title="VBScript Procedures" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/vbscript-procedures.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUMFRHk_eip7ImA9WxNRFEU.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-3638957598727769025</id><published>2009-09-09T02:08:00.000-07:00</published><updated>2009-09-09T02:10:15.742-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-09T02:10:15.742-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="VBScript Tutorial" /><title>Arrays (VBscript)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lLQ62WujsvbSITERLndOSnuN4mM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lLQ62WujsvbSITERLndOSnuN4mM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/lLQ62WujsvbSITERLndOSnuN4mM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lLQ62WujsvbSITERLndOSnuN4mM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family:Times New Roman;font-size:130%;"&gt; &lt;p&gt;The VBScript language provides support for arrays. You  declare an array using the &lt;em&gt;Dim&lt;/em&gt; statement, just as you did with variables:&lt;/p&gt; &lt;p&gt;Dim States(50)&lt;/p&gt; &lt;p&gt;The statement above creates an array with 51 elements. Why 51? Because VBScript arrays are zero-based, meaning that the first array element is indexed 0 and the last is the number specified when declaring the array.&lt;/p&gt; &lt;p&gt;You assign values to the elements of an array just as you would a variable, but with an additional reference (the index) to the element in which it will be stored:&lt;br /&gt;  States(5) = "California"&lt;br /&gt;  States(6) = "New York"&lt;/p&gt; &lt;p&gt;Arrays can have multiple dimensions-VBScript supports up to 60. Declaring a two dimensional array for storing 51 states and their capitals could be done as follows:&lt;/p&gt; &lt;p&gt;Dim StateInfo(50,1)&lt;br /&gt;  To store values into this array you would then reference  both dimensions.&lt;/p&gt; &lt;p&gt;StateInfo(18,0) = "Michigan"&lt;br /&gt;  StateInfo(18,1) = "Lansing"&lt;/p&gt; &lt;p&gt;VBScript also provides support for arrays whose size may need to change as the script is executing. These arrays are referred to as dynamic arrays. A dynamic array is declared without specifying the number of elements it will contain:&lt;/p&gt; &lt;p&gt;Dim Customers()&lt;/p&gt; &lt;p&gt;The ReDim statement is then used to change the size of the  array from within the script:&lt;br /&gt;  ReDim Customers(100)&lt;/p&gt; &lt;p&gt;There is no limit to the number of times an array can be re-dimensioned during the execution of a script. To preserve the contents of an array when you are re-dimensioning, use the Preserve keyword:&lt;br /&gt;  ReDim Preserve Customers(100)&lt;/p&gt;   &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-3638957598727769025?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/he6assdFjg0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/3638957598727769025/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/arrays-vbscript.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/3638957598727769025?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/3638957598727769025?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/he6assdFjg0/arrays-vbscript.html" title="Arrays (VBscript)" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/arrays-vbscript.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUUDRng-cSp7ImA9WxNRFEU.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-5526318891055551478</id><published>2009-09-09T02:04:00.000-07:00</published><updated>2009-09-09T02:07:57.659-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-09T02:07:57.659-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="VBScript Tutorial" /><title>Working With Variables</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7JcjTNvFCBW1_c2RoxtddJ5DP2c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7JcjTNvFCBW1_c2RoxtddJ5DP2c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7JcjTNvFCBW1_c2RoxtddJ5DP2c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7JcjTNvFCBW1_c2RoxtddJ5DP2c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;p&gt;A variable is a named location in computer memory that you can use for storage of data during the execution of your scripts. You can use variables to:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Store input from the user gathered via       your web page&lt;/li&gt;&lt;li&gt;Save data returned from functions&lt;/li&gt;&lt;li&gt;Hold results from calculations&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;strong&gt;An Introduction to Variables&lt;/strong&gt;&lt;br /&gt;Let's look at a  simple VBScript example to clarify the use of variables.&lt;/p&gt; &lt;p&gt;Sub testVariables_OnClick&lt;br /&gt;    Dim Name&lt;br /&gt;    Name = InputBox("Enter your name: ")&lt;br /&gt;    MsgBox "The name you entered is " &amp;amp; Name&lt;br /&gt;  End Sub&lt;/p&gt; &lt;p&gt;The first line of this example defines a sub procedure associated with the click event of a command button named testVariables.&lt;br /&gt;On second line we declare a variable named Name. We are going to use this variable to store the name of the user when it is entered. The third line uses the InputBox function to first prompt for, and then return, the user's name. You will see more of the InputBox function later in this tutorial. The name it returns is stored in the Name variable.&lt;br /&gt;  The fourth line  uses the MsgBox function to  display the user's name. Finally, the sub procedure completes on line five.&lt;/p&gt; &lt;p&gt;Exactly how, and  where, variables are stored is not important. What you use them for, and how  you use them is important. &lt;/p&gt; &lt;p&gt;&lt;strong&gt;Declaring Variables&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;There are two methods for declaring variables in VBScript, explicitly and implicitly. You usually declare variables explicitly with the Dim statement:&lt;/p&gt; &lt;p&gt;Dim Name&lt;/p&gt; &lt;p&gt;This statement declares the variable Name. You can also declare multiple variables on one line as shown below, although it is preferable to declare each variable separately.&lt;/p&gt; &lt;p&gt;Variables can be declared implicitly by simply using the variable name within your script. This practice is not recommended. It leads to code that is prone to errors and more difficult to debug.&lt;/p&gt; &lt;p&gt;You can force VBScript to require all variables to be explicitly declared by including the statement Option Explicit at the start of every script. Any variable that is not explicitly declared will then generate an error.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Variable Naming Rules&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;They must begin with an alphabetic       character&lt;/li&gt;&lt;li&gt;They cannot contain embedded periods&lt;/li&gt;&lt;li&gt;They must be unique within the same       scope. There is more on scopes later in this lesson&lt;/li&gt;&lt;li&gt;They must be no longer than 255       characters&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;strong&gt;Variants and Subtypes&lt;/strong&gt;&lt;br /&gt;VBScript has a single data type called a variant. Variants have the ability to store different types of data. The types of data that a variant can store are referred to as subtypes. The table below describes the subtypes supported by VBScript.&lt;br /&gt;    &lt;/p&gt; &lt;table border="1" cellpadding="0"&gt;   &lt;tbody&gt;&lt;tr&gt;     &lt;td&gt;&lt;br /&gt;        &lt;strong&gt;Subtype&lt;/strong&gt; &lt;/td&gt;     &lt;td&gt;&lt;p&gt;&lt;strong&gt;Description of Uses for Each Subtype&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td&gt;&lt;p&gt;Byte&lt;/p&gt;&lt;/td&gt;     &lt;td&gt;&lt;p&gt;Integer numbers between 0 to 255&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td&gt;&lt;p&gt;Boolean&lt;/p&gt;&lt;/td&gt;     &lt;td&gt;&lt;p&gt;&lt;em&gt;True&lt;/em&gt; and &lt;em&gt;False&lt;/em&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td&gt;&lt;p&gt;Currency&lt;/p&gt;&lt;/td&gt;     &lt;td&gt;&lt;p&gt;Monetary values&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td&gt;&lt;p&gt;Date&lt;/p&gt;&lt;/td&gt;     &lt;td&gt;&lt;p&gt;Date and time&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td&gt;&lt;p&gt;Double&lt;/p&gt;&lt;/td&gt;     &lt;td&gt;&lt;p&gt;Extremely large numbers with decimal points&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td&gt;&lt;p&gt;Empty&lt;/p&gt;&lt;/td&gt;     &lt;td&gt;&lt;p&gt;The value that a variant holds before being used&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td&gt;&lt;p&gt;Error&lt;/p&gt;&lt;/td&gt;     &lt;td&gt;&lt;p&gt;An error number&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td&gt;&lt;p&gt;Integer&lt;/p&gt;&lt;/td&gt;     &lt;td&gt;&lt;p&gt;Large integers between -32,768 and 32,767&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td&gt;&lt;p&gt;Long&lt;/p&gt;&lt;/td&gt;     &lt;td&gt;&lt;p&gt;Extremely large integers (-2,147,483,648 and    2,147,483,647)&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td&gt;&lt;p&gt;Object&lt;/p&gt;&lt;/td&gt;     &lt;td&gt;&lt;p&gt;Objects&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td&gt;&lt;p&gt;Null&lt;/p&gt;&lt;/td&gt;     &lt;td&gt;&lt;p&gt;No valid data&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td&gt;&lt;p&gt;Single&lt;/p&gt;&lt;/td&gt;     &lt;td&gt;&lt;p&gt;Large numbers with decimal points&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td&gt;&lt;p&gt;String&lt;/p&gt;&lt;/td&gt;     &lt;td&gt;&lt;p&gt;Character strings&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;strong&gt;Assigning Values&lt;/strong&gt;&lt;br /&gt;  You assign a value  to a variable by using the following format:&lt;/p&gt; &lt;p&gt;Syntax:&lt;br /&gt;  Variable_name = value&lt;/p&gt; &lt;p&gt;Examples:&lt;br /&gt;  Name = "Rahul"&lt;br /&gt;  Age=50&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Scope of Variables&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;The scope of a variable dictates where it can be used in your script. A variable's scope is determined by where it is declared. If it is declared within a procedure, it is referred to as a procedure-level variable and can only be used within that procedure. If it is declared outside of any procedure, it is a script-level variable and can be used throughout the script.&lt;br /&gt;  The example below  demonstrates both script-level and procedure-level variables.&lt;/p&gt; &lt;p&gt;&lt;&gt;&lt;br /&gt;    Dim counter&lt;br /&gt;    Sub cmdButton_onClick&lt;br /&gt;      Dim temp&lt;br /&gt;    End Sub&lt;br /&gt;  &lt; /SCRIPT &gt;&lt;/p&gt; &lt;p&gt;The variable counter is a script-level variable and can be utilized throughout the script. The variable temp exists only within the cmdButton_onClick sub-procedure.&lt;/p&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-5526318891055551478?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/JElU8bCdwZU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/5526318891055551478/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/working-with-variables.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/5526318891055551478?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/5526318891055551478?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/JElU8bCdwZU/working-with-variables.html" title="Working With Variables" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/working-with-variables.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkAER304fip7ImA9WxNRE04.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-3160499222693058384</id><published>2009-09-07T07:42:00.000-07:00</published><updated>2009-09-07T07:45:06.336-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T07:45:06.336-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JAVASCRIPT" /><title>Operators (JavaScript)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/SCeXgLPWmC6OIRIl2MInlvywRm4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SCeXgLPWmC6OIRIl2MInlvywRm4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/SCeXgLPWmC6OIRIl2MInlvywRm4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SCeXgLPWmC6OIRIl2MInlvywRm4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family: verdana;font-family:Times New Roman;font-size:100%;"  &gt; &lt;p&gt;Operators are symbols that are used with variables to allow us to perform certain functions, such as adding, subtracting and etc. The table below lists the operators available in JavaScript and describes its function (assuming the two variables x and y that have been declared and initialized with a value)&lt;/p&gt; &lt;p&gt;&lt;strong&gt;JavaScript Arithmetic  Operators&lt;/strong&gt;&lt;br /&gt;  Arithmetic operators are used to perform arithmetic between  variables and/or values.&lt;br /&gt;  Given that y=5, the table below explains the arithmetic  operators: &lt;/p&gt; &lt;table width="79%" border="1" cellpadding="0" cellspacing="0"&gt;   &lt;tbody&gt;&lt;tr&gt;     &lt;td width="14%"&gt;&lt;br /&gt;        &lt;strong&gt;Operator&lt;/strong&gt; &lt;/td&gt;     &lt;td width="45%"&gt;&lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;     &lt;td width="22%"&gt;&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;     &lt;td width="17%"&gt;&lt;p&gt;&lt;strong&gt;Result&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;+&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="45%"&gt;&lt;p&gt;Addition &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="22%"&gt;&lt;p&gt;x=y+2 &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="17%"&gt;&lt;p&gt;x=7 &lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;-&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="45%"&gt;&lt;p&gt;Subtraction &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="22%"&gt;&lt;p&gt;x=y-2&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="17%"&gt;&lt;p&gt;x=3&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;*&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="45%"&gt;&lt;p&gt;Multiplication &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="22%"&gt;&lt;p&gt;x=y*2&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="17%"&gt;&lt;p&gt;x=10&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;/&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="45%"&gt;&lt;p&gt;Division &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="22%"&gt;&lt;p&gt;x=y/2&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="17%"&gt;&lt;p&gt;x=2.5&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;%&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="45%"&gt;&lt;p&gt;Modulus (division remainder) &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="22%"&gt;&lt;p&gt;x=y%2&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="17%"&gt;&lt;p&gt;x=1&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;++&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="45%"&gt;&lt;p&gt;Increment&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="22%"&gt;&lt;p&gt;x=++y&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="17%"&gt;&lt;p&gt;x=6 &lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;--&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="45%"&gt;&lt;p&gt;Decrement&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="22%"&gt;&lt;p&gt;x=--y&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="17%"&gt;&lt;p&gt;x=4 &lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;strong&gt;JavaScript Assignment  Operators&lt;/strong&gt;&lt;br /&gt;  Assignment operators are used to assign values to JavaScript  variables.&lt;br /&gt;  Given that x=10 and y=5, the table below explains the assignment  operators:&lt;/p&gt; &lt;table width="79%" border="1" cellpadding="0" cellspacing="0"&gt;   &lt;tbody&gt;&lt;tr&gt;     &lt;td width="15%"&gt;&lt;br /&gt;        &lt;strong&gt;Operator&lt;/strong&gt; &lt;/td&gt;     &lt;td width="40%"&gt;&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;     &lt;td width="25%"&gt;&lt;p&gt;&lt;strong&gt;Same As&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;     &lt;td width="20%"&gt;&lt;p&gt;&lt;strong&gt;Result&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;=&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x=y&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt; &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x=5&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;+=&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x+=y&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x=x+y&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x=15&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;-=&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x-=y&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x=x-y&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x=5&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;*=&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x*=y&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x=x*y&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x=50&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;/=&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x/=y&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x=x/y&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x=2&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;%=&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x%=y&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x=x%y&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;x=0&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Comparison Operators&lt;/strong&gt;&lt;br /&gt;  Comparison operators are used in logical statements to  determine equality or difference between variables or values.&lt;br /&gt;  Given that x=5, the table below explains the comparison  operators:&lt;/p&gt; &lt;table width="79%" border="1" cellpadding="0" cellspacing="0"&gt;   &lt;tbody&gt;&lt;tr&gt;     &lt;td width="14%"&gt;&lt;br /&gt;        &lt;strong&gt;Operator&lt;/strong&gt; &lt;/td&gt;     &lt;td width="44%"&gt;&lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;     &lt;td width="40%"&gt;&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;==&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;is equal to &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="40%"&gt;&lt;p&gt;x==8 is false &lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;===&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;is exactly equal to (value and type)&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="40%"&gt;&lt;p&gt;x===5 is true&lt;br /&gt;      x==="5" is false&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;!=&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;is not equal &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="40%"&gt;&lt;p&gt;x!=8 is true &lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;&gt; &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;is greater than &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="40%"&gt;&lt;p&gt;x&gt;8 is false &lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;&lt; &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;is less than &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="40%"&gt;&lt;p&gt;x&lt;8&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;&gt;=&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;is greater than or equal to &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="40%"&gt;&lt;p&gt;x&gt;=8 is false&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;&lt;=&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;is less than or equal to &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top" width="40%"&gt;&lt;p&gt;x&lt;=8 is true&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;strong&gt;Logical Operators&lt;/strong&gt;&lt;br /&gt;  Logical operators are used to determine the logic between  variables or values.&lt;br /&gt;  Given that x=6 and y=3, the table below explains the logical  operators: &lt;/p&gt; &lt;table width="80%" border="1" cellpadding="0" cellspacing="0"&gt;   &lt;tbody&gt;&lt;tr&gt;     &lt;td width="15%"&gt;&lt;br /&gt;        &lt;strong&gt;Operator&lt;/strong&gt; &lt;/td&gt;     &lt;td width="45%"&gt;&lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;     &lt;td width="40%"&gt;&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;&amp;amp;&amp;amp;&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;and &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;(x &lt;&gt; 1) is true&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;||&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;or &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;(x==5 || y==5) is false&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;&lt;p&gt;!&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;not &lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;&lt;p&gt;!(x==y) is true&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-3160499222693058384?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/xPvhHXzQMOY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/3160499222693058384/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/operators-javascript.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/3160499222693058384?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/3160499222693058384?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/xPvhHXzQMOY/operators-javascript.html" title="Operators (JavaScript)" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/operators-javascript.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcCR3c_cSp7ImA9WxNRE04.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-968012227774472873</id><published>2009-09-07T07:27:00.000-07:00</published><updated>2009-09-07T07:34:26.949-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T07:34:26.949-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JAVASCRIPT" /><title>Learn JavaScript</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/y2wiO4LturOpd9hiAlW-wLtElM4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/y2wiO4LturOpd9hiAlW-wLtElM4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/y2wiO4LturOpd9hiAlW-wLtElM4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/y2wiO4LturOpd9hiAlW-wLtElM4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family: verdana;font-family:Times New Roman;font-size:130%;"  &gt;JavaScript is a scripting language widely used for client-side web development. It was the originating dialect of the ECMAScript standard. It is a dynamic, weakly typed, prototype-based language with first-class functions. JavaScript was influenced by many languages and was designed to look like Java, but be easier for non-programmers to work with.&lt;br /&gt;&lt;br /&gt;"JavaScript" is a trademark of Sun Microsystems. It was used under license for technology invented and implemented by Netscape Communications and current entities such as the Mozilla Foundation.&lt;br /&gt;&lt;br /&gt;Although best known for its use in websites (as client-side JavaScript), JavaScript is also used to enable scripting access to objects embedded in other applications (see below).&lt;br /&gt;&lt;br /&gt;JavaScript, despite the name, is essentially unrelated to the Java programming language, although both have the common C syntax, and JavaScript copies many Java names and naming conventions. The language's name is the result of a co-marketing deal between Netscape and Sun, in exchange for Netscape bundling Sun's Java runtime with their then-dominant browser. The key design principles within JavaScript are inherited from the self and Scheme programming languages.&lt;strong&gt;&lt;br /&gt;&lt;br /&gt;What's the difference between JavaScript and Java?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Actually, the 2 languages have almost nothing in common except for the name. Although Java is technically an interpreted programming language, it is coded in a similar fashion to C++, with separate header and class files, compiled together prior to execution. It is powerfull enough to write major applications and insert them in a web page as a special object called an "applet." Java has been generating a lot of excitement because of its unique ability to run the same program on IBM, Mac, and UNIX computers. Java is not considered an easy-to-use language for non-programmers.&lt;br /&gt;&lt;br /&gt;JavaScript is much simpler to use than Java. With JavaScript, if I want check a form for errors; I just type an if-then statement at the top of my page. No compiling, no applets, just a simple sequence.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-968012227774472873?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/dfIaEF0THtc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/968012227774472873/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/learn-javascript.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/968012227774472873?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/968012227774472873?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/dfIaEF0THtc/learn-javascript.html" title="Learn JavaScript" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/learn-javascript.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkINR309fSp7ImA9WxNRE04.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-8922800391491062983</id><published>2009-09-07T04:16:00.000-07:00</published><updated>2009-09-07T07:43:16.365-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T07:43:16.365-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="links" /><title>Important Links</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/qC3JhzgLxVXtj8JGA7eJYFjrCn0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qC3JhzgLxVXtj8JGA7eJYFjrCn0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/qC3JhzgLxVXtj8JGA7eJYFjrCn0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qC3JhzgLxVXtj8JGA7eJYFjrCn0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.mytraininghub.com/"&gt;My Training Hub&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.securityclimate.org/"&gt;Security Climate Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.doharugbyfc.com/"&gt;Doharugbyfc&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.cheetosokumaodasi.com/"&gt;ADD URL :: Submit URL&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.rootfl.org/"&gt;Root Fl Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.ostwestfreizeit.com/"&gt;Free Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.zoock.net/"&gt;ZoocK Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://smalandoland.com/"&gt;Quality Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.sudnet.org/"&gt;SudNET Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.ribcast.com/"&gt;RibCast Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.mixingitup.info/"&gt;Quality Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.femeba.net/"&gt;Femeba Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.etninvesting.com/" id="R0"&gt;ETN Free Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.ablazedirectory.com/"&gt;Ablaze Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.soundsolutionsam1.com/"&gt;SoundSolutionSam1&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.mydirectorylive.com/"&gt;My Directory Live&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.ncldf.com/"&gt;Net Collector&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.jsum.org/"&gt;jSum Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.linkaddurl.com/"&gt;LINK ADD URL Seo Friendly Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.winapple.info/"&gt;Winapple Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.huahua.info/"&gt;Huahua General Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.kostel.org/"&gt;Web directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.pegasusdirectory.com/"&gt;Free web directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.esi-q.info/"&gt;eSiq Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.katerart.com/"&gt;Welcome to Katerart.com, a website Directory.&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.directorybin.com/"&gt;Directory Bin&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.all-linkdirectory.com/"&gt; All Links Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.miriblack.com/"&gt;MiriBlack Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.submiturl.in/directory"&gt;Submit URL Directory!&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.eportlandhomes.info/"&gt;Portland ORE Homes&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.zydamax.com/"&gt;Zydamax Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.banyapa.com/"&gt;Banyapa Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.2006cigr.org/"&gt;2006cigr-Directory Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://directory.seoexecutive.com/" id="R46B573"&gt;SEO Executive&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.freeprwebdirectory.com/"&gt;PR5 Directories&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.chinafixer.net/"&gt;ChinaFixer - Free Internet Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.xfoksite.net/"&gt;Free Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.3mss.com/"&gt;3MSS Directory Submission&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.traveltourismdirectory.info/"&gt;Directory Travel&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.wwwi.co.uk/"&gt;Business Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.pittsburghartreview.org/"&gt;Pittsburgh Art Review Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.anaximanderdirectory.com/"&gt;Anaximander Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.clattorney.com/"&gt;Free Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.littlewebdirectory.com/"&gt;Free Web Directory - Add Your Link&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.desarrolo.com/"&gt;Desarrolo Link Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.clattorney.com/"&gt;Free Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.desarrolo.com/"&gt;Desarrolo Link Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.littlewebdirectory.com/"&gt;Free Web Directory - Add Your Link&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;The Little Web Directory&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.kk-club.com/"&gt;KK-CLUB&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.soft4each.com/"&gt;Soft4Each Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.netwerker.com/"&gt;Free web directory - Netwerker&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.ascia2008.com/"&gt;Quality Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.ynjjdg.com/"&gt;Ynjjdg - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.nkssnet.net/"&gt;Net Knowledge&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.clocktowerstudio.com/"&gt;Clock Tower Studio - General Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.devoteclub.com/"&gt;DevoteClub - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.eatdrinkfeelgood.org/"&gt;Web Directory - Top Sites&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.faba.us/"&gt;Faba Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.cagtermal.com/"&gt;Cagtermal&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.skoobe.biz/"&gt;Skoobe Link Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.rcreducation.com/"&gt;RcrEducation - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.bondbanking.com/" id="R0"&gt;Free Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.webdee.org/"&gt;Webdee.org FREE Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.arakne-links.com/"&gt;Arakne-Links Directory&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;&lt; href="'http://www.directorystorm.com/'"&gt; Directory Storm&lt; /a &gt;&lt;/span&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.o9i.net/"&gt;Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.linkroo.com/"&gt;Linkroo - A better place for Backlinks | SEO Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.hitalyzer.com/"&gt;Submit site - web site promotion - Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.musicmaza.com/"&gt;Indian Songs, Pakistani Songs, Bollywood Songs&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.urozope.org/"&gt;Urozope.org Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.magdalyns.com/"&gt;MagDalyns Online&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.1adir.com/"&gt;1 A  Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.bbbfit.com/"&gt;Bbbfit- Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.sportsmans-depot.com/"&gt;Sportsman's Depot is the leading provider of Hunting, Fishing, Camping and outdoor accessories online! We offer an array of sporting supplies to fit your every need, with the best prices on the web. You can find every top brand at the lowest prices at Sportsman's Depot&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.west2002.org/"&gt;West Web directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.aaf14.org/"&gt;Always and Forever 14&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.bryancampen.com/"&gt;Bryancampen - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.sbclansite.com/"&gt;Free Image Hosting A1 Family Friendly Directory with Deeplinks&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.seofriendlydirectory4u.com/"&gt;Free SEO Friendly Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.websitejoint.com/"&gt;Search Engine Friendly Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.cfkap.com/"&gt;Cfkap Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://niresource.com/"&gt;NI Resource Directory&lt;/a&gt;&lt;br /&gt;&lt;b style="color: rgb(153, 0, 0);"&gt;&lt;a href="http://www.phillyfirstonthefourth.com/" target="_blank" title="SEO Web Directory"&gt;Search engine friendly directory&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.websitejoint.com/"&gt;Search Engine Friendly Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.hrce.com/"&gt;HRCE Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.e-mediate.org/" id="R0"&gt;E-Mediate.org&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.hrce.com/"&gt;HRCE Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.yasamayadeger.com/"&gt;YasamayaDeger - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.wahweb.com/"&gt;Wah Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.safadairy.com/"&gt;Safadairy - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.urldirectory.org/"&gt;URL Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.koaladir.com/"&gt;Quality Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.yelk.net/" target="_blank"&gt;Yelk.net - Search for sites by their descriptions. Try it!&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.businesssitesonthenet.co.uk/"&gt;Business Sites on the Net&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.digidagi.com/"&gt;DigiDagi Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.allsitessorted.com/"&gt;Web Directory - All Sites Sorted&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.prvoices.com/"&gt;PR General Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.apleintubes.com/"&gt;ApleinTubes Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.munoa.org/"&gt;Munoa- Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.projectempowerment.com/"&gt;Project Empowerment Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.jhucr.org/"&gt;JHUCR Free Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.sentrega.com/"&gt;Sentrega Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.piseries.com/"&gt;Piseries Link Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.memewarrior.com/"&gt;Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.mozizona.com/"&gt;Mozizona - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.golftournamentregistry.com/"&gt;Golf Tournament Registry&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://ft8.org/"&gt;Ft8 Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.samaprzyjemnosc.pl/"&gt;Deep Links Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.wishdc.org/"&gt;WishDC.org Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.vietnam-hub.com/"&gt;Vietnam-Hub&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.pzsa.com/"&gt;PZSA Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.cfstudio.net/"&gt;Cfstudio - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.chaqra.com/"&gt;Chaqra Directory&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;&lt; href="'http://www.okaysites.com/'"&gt; Okay Sites&lt; /a &gt;&lt;/span&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.wybnb.com/"&gt;wybnb.com&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.webdiro.com/"&gt;WebDiro Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.lutonengineering.com/"&gt;Free Web Directory - Deep Links OK!&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.zngp.com/"&gt;ZN Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.gmdm.info/"&gt;Gmdm Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.az-links.info/"&gt;AZ Links Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.holidaydig.com/"&gt;HolidayDig Free Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.gainweb.org/"&gt;Gain Web&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.technoworld.org/"&gt;Technoworld - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.increasedirectory.com/"&gt;Increase Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.msgat.com/" id="R0"&gt;Msgat - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.wishdc.org/"&gt;WishDC.org Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.vipdig.com/"&gt;VipDig Free Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.tripledirectory.com/"&gt;Human Edited Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.eozbird.com/"&gt;Quality Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.submit.biz/"&gt;Submit url&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.tuckinfo.com/" id="R0"&gt;Tuckinfo Directory-Submit Link&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.1adir.com/"&gt;1 A  Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.siztech.com/"&gt;Siz Tech Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.projectempowerment.com/"&gt;Project Empowerment Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.bbbfit.com/"&gt;Bbbfit- Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.memewarrior.com/"&gt;Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.vitrolaz.com/"&gt;Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.leetech.net/"&gt;Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.yourdomain.com/"&gt;Site Name&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.web-master-directory.com/"&gt;Web Master Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.maverickmoon.com/"&gt;MaverickMoon - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.counterdeal.com/"&gt;COUNTERDEAL.COM&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.thalesdirectory.com/"&gt;Thales Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.zipidor.com/"&gt;12 years old quailty web directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.pop-net.org/" id="RCD231A"&gt;Popular Directory Pop-Net.org&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.thaica.org/"&gt;Thai Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.temnoticia.com/"&gt;Temnoticia&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.jointmc.com/"&gt;Jointmc - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.bymattking.com/"&gt;ByMattKing - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.gg-directory.info/"&gt;GG Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.jjhou.com/"&gt;Jjhou general directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.neks.info/"&gt;Neks - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.aidasart.com/"&gt;Quality Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.directory.ldmstudio.com/" title="web directory" target="_blank"&gt;Ldmstudio Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.aidasart.com/"&gt;Quality Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.blogs-collection.com/" title="blogs directory" target="_blank"&gt;Blogs Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.directoryvault.com/"&gt;DirectoryVault Free Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.aqard.com/"&gt;Aqard - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.webhotlink.com/"&gt;Human edited web directory Web Hot Link general online internet web directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.msgat.com/" id="R0"&gt;Msgat - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.cmdg.biz/"&gt;CMDG&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.webhotlink.com/"&gt;Human edited web directory Web Hot Link general online internet web directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.scablevel.com/"&gt;Scablevel - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.directoryvault.com/"&gt;DirectoryVault Free Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.pattiswagons.com/"&gt;Pattis Wagons Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.sostro.net/"&gt;Sostro - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.ddht.net/"&gt;Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.yourdomain.com/"&gt;Site Name&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.alldeny.com/"&gt;Alldeny - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.lefolio.com/"&gt;Lefolio - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.mygreencorner.com/"&gt;My Green Corner&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://friendlyseodirectory.com/"&gt;Friendly Seo Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.metextile.com/"&gt;Metextile - Submit Your Site&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.ivisu.org/"&gt;ivisu.org&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.domaining.in/domains-for-sale/"&gt;Buy Domain Names&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.skypemedia.com/" id="RA14AEA"&gt;Skype Media Web Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.h-pf.com/"&gt;H-PF - Free Directories&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.freewebsitedirectory.com/"&gt;Free Website Directory&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.directory-link.info/" id="R625E0E"&gt;Directory Link&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0);" href="http://www.bnpt.net/"&gt;Web Directory&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-8922800391491062983?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/-2PeK1QptY8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/8922800391491062983/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/important-links.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/8922800391491062983?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/8922800391491062983?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/-2PeK1QptY8/important-links.html" title="Important Links" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/important-links.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYBRXo6cCp7ImA9WxNRE08.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-851882599084828897</id><published>2009-09-07T04:10:00.000-07:00</published><updated>2009-09-07T04:15:54.418-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T04:15:54.418-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL" /><title>Update and Delete Statements(MYSQL)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Y6rbnmeJo87mFtIz-x0bkjFFyOM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Y6rbnmeJo87mFtIz-x0bkjFFyOM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Y6rbnmeJo87mFtIz-x0bkjFFyOM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Y6rbnmeJo87mFtIz-x0bkjFFyOM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Update statement is used to modify the data in a database table. The general syntax is as under.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;UPDATE tablename SET columnname = newvalue WHERE columnname = value&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Example:&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Table Name(&lt;/strong&gt;empinfo&lt;strong&gt;)&lt;/strong&gt;&lt;/p&gt;&lt;table summary="" width="431" border="1" cellpadding="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="71"&gt;&lt;strong&gt;FirstName&lt;/strong&gt;&lt;/td&gt;&lt;td width="70"&gt;&lt;strong&gt;LastName&lt;/strong&gt;&lt;/td&gt;      &lt;td width="194"&gt;&lt;strong&gt;Email&lt;/strong&gt;&lt;/td&gt;&lt;td width="76"&gt;&lt;strong&gt;DOB&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Steve&lt;br /&gt;&lt;/td&gt;&lt;td&gt;Martin&lt;/td&gt;&lt;td&gt;smart.steve@studiesinn.com&lt;/td&gt;&lt;td&gt;08-04-1988&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;David&lt;/td&gt;&lt;td&gt;Fernandas&lt;/td&gt;&lt;td&gt;davidfernandas@studiesinn.com&lt;/td&gt;&lt;td&gt;04-16-1977&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Ajay&lt;/td&gt;&lt;td&gt;Rathor&lt;/td&gt;&lt;td&gt;ajayrathor@studiesinn.com&lt;/td&gt;&lt;td&gt;08-24-1986&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt; ? php $con  =  mysql_connect ("localhost:3306","adam","123456"); if  (!$con) { die  ('Could not connect: ' . mysql_error()); &lt;p&gt;  }&lt;/p&gt;mysql_select_db("mydb", $con);&lt;br /&gt;$result = mysql_query("Update empinfo Set DOB=’07-05-1988’ where FirstName=’Steve’");&lt;br /&gt;mysql_close($con);&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;table summary="" width="431" border="1" cellpadding="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="71"&gt;&lt;strong&gt;FirstName&lt;/strong&gt;&lt;/td&gt;&lt;td width="70"&gt;&lt;strong&gt;LastName&lt;/strong&gt;&lt;/td&gt;&lt;td width="194"&gt;&lt;strong&gt;Email&lt;/strong&gt;&lt;/td&gt;&lt;td width="76"&gt;&lt;strong&gt;DOB&lt;/strong&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Steve&lt;/td&gt;&lt;td&gt;Martin&lt;/td&gt;&lt;td&gt;smart.steve@studiesinn.com&lt;/td&gt;&lt;td&gt;07-05-1988&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;David&lt;/td&gt;&lt;td&gt;Fernandas&lt;/td&gt;&lt;td&gt;davidfernandas@studiesinn.com&lt;/td&gt;&lt;td&gt;04-16-1977&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Ajay&lt;/td&gt;&lt;td&gt;Rathor&lt;/td&gt;&lt;td&gt;ajayrathor@studiesinn.com&lt;/td&gt;&lt;td&gt;08-24-1986&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt; &lt;/p&gt;&lt;script type="text/javascript"&gt;var addthis_pub = "qasimbilal";&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Delete Statement&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;DELETE FROM statement is used to delete rows from a database table. The general syntax is as under.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;DELETE FROM tablename WHERE columnname = value&lt;/p&gt;&lt;span style="font-weight: bold;"&gt;Example:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;br /&gt;Table Name(&lt;/strong&gt;empinfo&lt;strong&gt;)&lt;/strong&gt;&lt;table width="421" border="1" cellpadding="0" cellspacing="0"&gt;    &lt;tbody&gt;&lt;tr&gt;    &lt;td width="71"&gt;&lt;strong&gt;FirstName&lt;/strong&gt;&lt;/td&gt;    &lt;td width="70"&gt;&lt;strong&gt;LastName&lt;/strong&gt;&lt;/td&gt;    &lt;td width="194"&gt;&lt;strong&gt;Email&lt;/strong&gt;&lt;/td&gt;&lt;td width="76"&gt;&lt;strong&gt;DOB    &lt;/strong&gt;&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt;    &lt;td&gt;Steve&lt;/td&gt;    &lt;td&gt;Martin&lt;/td&gt;  &lt;td&gt;smart.steve@studiesinn.com&lt;/td&gt;    &lt;td&gt;08-04-1988&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;    &lt;td&gt;David&lt;/td&gt;    &lt;td&gt;Fernandas&lt;/td&gt;    &lt;td&gt;davidfernandas@studiesinn.com&lt;/td&gt;    &lt;td&gt;04-16-1977&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;    &lt;td&gt;Ajay&lt;/td&gt;    &lt;td&gt;Rathor&lt;/td&gt;  &lt;td&gt;ajayrathor@studiesinn.com&lt;/td&gt;    &lt;td&gt;08-24-1986&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt; ? php $con = mysql_connect("localhost:3306","adam","123456"); if (!$con) { die('Could not connect: ' . mysql_error()); &lt;p&gt;  }&lt;/p&gt;mysql_select_db("mydb", $con);&lt;br /&gt;$result = mysql_query("Delete From empinfo  where FirstName=’Steve’");&lt;br /&gt;mysql_close($con);&lt;br /&gt;?&gt;&lt;br /&gt;&lt;table width="420" border="1" cellpadding="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="71"&gt;&lt;strong&gt;FirstName&lt;/strong&gt;&lt;/td&gt;&lt;td width="70"&gt;&lt;strong&gt;LastName&lt;/strong&gt;&lt;/td&gt;      &lt;td width="194"&gt;&lt;strong&gt;Email&lt;/strong&gt;&lt;/td&gt;&lt;td width="76"&gt;&lt;strong&gt;DOB&lt;/strong&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;David&lt;/td&gt;&lt;td&gt;Fernandas&lt;/td&gt;&lt;td&gt;davidfernandas@studiesinn.com&lt;/td&gt;  &lt;td&gt;04-16-1977&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Ajay&lt;/td&gt;&lt;td&gt;Rathor&lt;/td&gt;&lt;td&gt;ajayrathor@studiesinn.com&lt;/td&gt;&lt;td&gt;08-24-1986&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-851882599084828897?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/6awXxoK_iXg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/851882599084828897/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/update-and-delete-statements.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/851882599084828897?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/851882599084828897?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/6awXxoK_iXg/update-and-delete-statements.html" title="Update and Delete Statements(MYSQL)" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/update-and-delete-statements.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0ABRXw-fSp7ImA9WxNRE08.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-4768873099127847021</id><published>2009-09-07T04:06:00.000-07:00</published><updated>2009-09-07T04:09:14.255-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T04:09:14.255-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL" /><title>Order By (MYSQL)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QK3OE7uikvTIXs3tVvt2OvckrNw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QK3OE7uikvTIXs3tVvt2OvckrNw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QK3OE7uikvTIXs3tVvt2OvckrNw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QK3OE7uikvTIXs3tVvt2OvckrNw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;We use Order By Keyword to sort the records in a recordset. The general syntax is as under.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;SELECT columnname(s) FROM tablename ORDER BY columnname SortOrder&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Example:&lt;br /&gt;Table Name(&lt;/strong&gt;empinfo&lt;strong&gt;)&lt;/strong&gt;&lt;br /&gt;&lt;/p&gt;&lt;table summary="" width="431" border="1" cellpadding="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="71"&gt;&lt;strong&gt;FirstName&lt;/strong&gt;&lt;/td&gt; &lt;td width="70"&gt;&lt;strong&gt;LastName&lt;/strong&gt;&lt;/td&gt;     &lt;td width="194"&gt;&lt;strong&gt;Email &lt;/strong&gt;&lt;/td&gt;  &lt;td width="76"&gt;&lt;strong&gt;DOB&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;td&gt;Steve&lt;/td&gt;&lt;td&gt;Martin&lt;/td&gt;&lt;td&gt;smart.steve@studiesinn.com&lt;/td&gt;&lt;td&gt;08-04-1988&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;David&lt;/td&gt;&lt;td&gt;Fernandas&lt;/td&gt;&lt;td&gt;davidfernandas@studiesinn.com&lt;/td&gt;&lt;td&gt;04-16-1977&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Ajay&lt;/td&gt;&lt;td&gt;Rathor&lt;/td&gt;&lt;td&gt;ajayrathor@studiesinn.com&lt;/td&gt;&lt;td&gt;08-24-1986&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;? php&lt;br /&gt;&lt;p&gt;$con = mysql_connect("localhost:3306","adam","123456");&lt;br /&gt;if (!$con)&lt;br /&gt; {&lt;br /&gt; die('Could not connect: ' . mysql_error());&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  }&lt;/p&gt;mysql_select_db("mydb", $con);&lt;br /&gt;$result = mysql_query("SELECT * FROM empinfo order by FirstName asc");&lt;br /&gt;while($row = mysql_fetch_array($result))&lt;br /&gt; {&lt;br /&gt; echo $row['FirstName'] . " " . $row['LastName'] . “ “ $row[‘DOB];&lt;br /&gt; echo "&lt;&gt;";&lt;br /&gt; }&lt;br /&gt;mysql_close($con);&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;The Output will be&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Ajay Rathor 08-24-1986&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;David Fernandas 04-16-1977&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Steve Martin 08-04-1988&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-4768873099127847021?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/VEi8vBXlGm4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/4768873099127847021/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/order-by-mysql.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/4768873099127847021?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/4768873099127847021?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/VEi8vBXlGm4/order-by-mysql.html" title="Order By (MYSQL)" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/order-by-mysql.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck8DSXk-cCp7ImA9WxNRE08.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-7721435726889653992</id><published>2009-09-07T03:52:00.000-07:00</published><updated>2009-09-07T03:54:38.758-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T03:54:38.758-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL" /><title>Where Clause(MYSQL)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7_-Q8pAHs2mZz5gciDTFzeL5jJs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7_-Q8pAHs2mZz5gciDTFzeL5jJs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7_-Q8pAHs2mZz5gciDTFzeL5jJs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7_-Q8pAHs2mZz5gciDTFzeL5jJs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;In Select Query we use WHERE clause to select only data that matches a specified criteria.&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;SELECT column(s) FROM tablename WHERE column operator value&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;Table Name(&lt;/strong&gt;empinfo&lt;strong&gt;):&lt;/strong&gt;&lt;/p&gt;&lt;table summary="" width="431" border="1" cellpadding="0"&gt; &lt;tbody&gt;  &lt;tr&gt;&lt;td width="71"&gt;&lt;strong&gt;FirstName&lt;/strong&gt;&lt;/td&gt;&lt;td width="70"&gt;&lt;strong&gt;LastName      &lt;/strong&gt;&lt;/td&gt;&lt;td width="194"&gt;&lt;strong&gt;Email&lt;/strong&gt;&lt;/td&gt; &lt;td width="76"&gt;&lt;strong&gt;DOB &lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Steve&lt;/td&gt;&lt;td&gt;Martin&lt;/td&gt;&lt;td&gt;smart.steve@studiesinn.com&lt;/td&gt;&lt;td&gt;08-04-1988&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;David&lt;/td&gt;   &lt;td&gt;Fernandas&lt;/td&gt;&lt;td&gt;davidfernandas@studiesinn.com&lt;/td&gt; &lt;td&gt;04-16-1977&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;Ajay&lt;/td&gt;&lt;td&gt;Rathor&lt;/td&gt;&lt;td&gt;ajayrathor@studiesinn.com&lt;/td&gt;&lt;td&gt;08-24-1986&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;$con = mysql_connect("localhost:3306","adam","123456");&lt;br /&gt;if (!$con)&lt;br /&gt; {&lt;br /&gt; die('Could not connect: ' . mysql_error());&lt;br /&gt;&lt;p&gt;  }&lt;/p&gt;mysql_select_db("mydb", $con);&lt;br /&gt;$result = mysql_query("SELECT * FROM empinfo where FirstName=’David’");&lt;br /&gt;while($row = mysql_fetch_array($result))&lt;br /&gt; {&lt;br /&gt; echo $row['FirstName'] . " " . $row['LastName'] . “ “ $row[‘DOB’];&lt;br /&gt; echo "&lt;br /&gt;";&lt;br /&gt; }&lt;br /&gt;mysql_close($con);&lt;br /&gt;?&gt;&lt;br /&gt;&lt;p&gt;Output will be.&lt;/p&gt;David Fernandas 04-16-1977&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Operator that can be used in where clause are as under&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;= Equal&lt;br /&gt;&lt;br /&gt;!= Not equal&lt;br /&gt;&lt;br /&gt;&gt; Greater than&lt;br /&gt;&lt;br /&gt;&lt; Less than&lt;br /&gt;&lt;br /&gt;&gt;= Greater than or equal&lt;br /&gt;&lt;br /&gt;&lt;= Less than or equal&lt;br /&gt;&lt;br /&gt;BETWEEN Between an inclusive range&lt;br /&gt;&lt;br /&gt;LIKE Search for a pattern&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-7721435726889653992?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/C5xtdPD02v4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/7721435726889653992/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/where-clausemysql.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/7721435726889653992?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/7721435726889653992?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/C5xtdPD02v4/where-clausemysql.html" title="Where Clause(MYSQL)" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/where-clausemysql.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0MMSHkyeSp7ImA9WxNRE08.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-8884725414759859651</id><published>2009-09-07T03:50:00.000-07:00</published><updated>2009-09-07T04:04:49.791-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T04:04:49.791-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL" /><title>Select  Statement (MYSQL)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/v6RBvJKthUdMsfjxgaO4UsBeLW0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/v6RBvJKthUdMsfjxgaO4UsBeLW0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/v6RBvJKthUdMsfjxgaO4UsBeLW0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/v6RBvJKthUdMsfjxgaO4UsBeLW0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;The select query is used to retrieve records from a database.&lt;br /&gt;&lt;/p&gt;&lt;table summary="" width="397" border="1" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="top" width="96"&gt;SELECT&lt;/td&gt;    &lt;td valign="top" width="295"&gt;Retrieves fields from one or more tables.&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;    &lt;td valign="top"&gt;FROM&lt;/td&gt; &lt;td valign="top"&gt;Tables containing the fields.&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;   &lt;td valign="top"&gt;WHERE&lt;/td&gt;  &lt;td valign="top"&gt;Criteria to restrict the records returned.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;  &lt;td valign="top"&gt;GROUP BY&lt;/td&gt;  &lt;td valign="top"&gt;Determines how the records should be grouped.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;  &lt;td valign="top"&gt;HAVING&lt;/td&gt; &lt;td valign="top"&gt;Used with GROUP BY to specify the criteria for the grouped records.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;td valign="top"&gt;ORDER BY&lt;/td&gt;&lt;td valign="top"&gt;Criteria for ordering the records.&lt;/td&gt;&lt;/tr&gt;  &lt;tr&gt; &lt;td valign="top"&gt;LIMIT&lt;/td&gt;&lt;td valign="top"&gt;Limit the number of records returned.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;strong&gt;Syntax:&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;SELECT column_name(s)&lt;br /&gt;FROM table_name&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt; ? php&lt;br /&gt;&lt;br /&gt;$con  =  mysql_connect ("localhost:3306","adam","123456");&lt;br /&gt;if  (!$con)&lt;br /&gt;{&lt;br /&gt;die('Could not connect: ' . mysql_error());&lt;br /&gt;}&lt;br /&gt;mysql_select_db("mydb", $con);&lt;br /&gt;$result = mysql_query("SELECT * FROM empinfo");&lt;br /&gt;while  ($row = mysql_fetch_array($result))&lt;br /&gt;{&lt;br /&gt;echo  $row['FirstName'] . " " . $row['LastName'] . “ “ $row[‘Age’];&lt;br /&gt;echo "&lt;&gt;";&lt;br /&gt;}&lt;br /&gt;mysql_close($con);&lt;br /&gt;?&gt;&lt;br /&gt;&lt;p&gt;Returned data from mysql_query() function will be stored in the result variable. msql_fetch_array() function is used to return the first row from the recordset as an array. The while loop loops through all the records in the recordset and retrieve all the records from the recordset.&lt;/p&gt;&lt;p&gt;Following function can be used in the select statement.&lt;br /&gt;&lt;/p&gt;&lt;table summary="" width="382" border="1" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt;&lt;tr&gt;    &lt;td valign="top" width="65"&gt;&lt;strong&gt;Function&lt;/strong&gt;&lt;/td&gt; &lt;td valign="top" width="317"&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt;AVG()&lt;/td&gt; &lt;td valign="top"&gt;Returns the average value in a group of records. &lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;  &lt;td valign="top"&gt;COUNT()&lt;/td&gt;  &lt;td valign="top"&gt;Returns the number of records in a group of records&lt;/td&gt;   &lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt;MAX()&lt;/td&gt;&lt;td valign="top"&gt;Returns the largest value in a group of records.&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td valign="top"&gt;MIN()&lt;/td&gt;&lt;td valign="top"&gt;Returns the lowest value in a group of records &lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td valign="top"&gt;SUM()&lt;/td&gt;&lt;td valign="top"&gt;Returns the sum of a field. &lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;strong&gt;&lt;br /&gt;Display the Result in an HTML Table&lt;br /&gt;&lt;/strong&gt;&lt;p&gt;}&lt;br /&gt;mysql_select_db  ("mydb", $con);&lt;br /&gt;&lt;/p&gt;&lt;p&gt;result  =  mysql_query ("SELECT * FROM empinfo");&lt;br /&gt;&lt;br /&gt;echo "&lt; border="'1'" align="’center’"&gt;&lt;br /&gt;&lt;br /&gt;&lt;&gt;&lt;br /&gt;&lt;br /&gt;&lt;&gt;&lt;&gt; Firstname &lt; / b &gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;&gt;&lt;&gt;Lastname&lt; / b &gt;&lt;/p&gt;&lt;&gt;&lt;&gt;Age&lt;  / b &gt;&lt;  / td  &gt;&lt;br /&gt;&lt;br /&gt;&lt; / tr &gt;";&lt;br /&gt;while($row = mysql_fetch_array($result))&lt;br /&gt;{&lt;br /&gt;echo "&lt;&gt;";&lt;br /&gt;echo "&lt;&gt;" . $row['FirstName'] . "&lt; / td &gt;";&lt;br /&gt;&lt;p&gt;  echo "&lt;&gt;" . $row['LastName'] . "&lt; /td &gt;";&lt;/p&gt;echo "&lt;&gt;" . $row['Age'] . "&lt; / td &gt;";&lt;br /&gt;&lt;br /&gt;echo "&lt; / tr &gt;";&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;echo "&lt; / table &gt;";&lt;br /&gt;&lt;p&gt;&lt;br /&gt;mysql_close($con);&lt;br /&gt;&lt;/p&gt;&lt;p&gt;?&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-8884725414759859651?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/_BfLfIC5TOY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/8884725414759859651/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/select-statement-mysql.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/8884725414759859651?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/8884725414759859651?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/_BfLfIC5TOY/select-statement-mysql.html" title="Select  Statement (MYSQL)" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/select-statement-mysql.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkEGQnw5eSp7ImA9WxNRE08.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-7905022965669696367</id><published>2009-09-07T03:47:00.000-07:00</published><updated>2009-09-07T03:50:23.221-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T03:50:23.221-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL" /><title>Insert Data into the Table (MYSQL)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PzGWsQYX-SQA9CPJENtoEU-26Jk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PzGWsQYX-SQA9CPJENtoEU-26Jk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PzGWsQYX-SQA9CPJENtoEU-26Jk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PzGWsQYX-SQA9CPJENtoEU-26Jk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;The INSERT INTO SQL statement impregnates our table with data. Here is a general form of INSERT.&lt;br /&gt;&lt;br /&gt;INSERT INTO table_name (column1, column2....) VALUES (value1, value2,....)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-7905022965669696367?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/X70mOOG0_hY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/7905022965669696367/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/insert-data-into-table.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/7905022965669696367?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/7905022965669696367?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/X70mOOG0_hY/insert-data-into-table.html" title="Insert Data into the Table (MYSQL)" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/insert-data-into-table.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkMHRH4yeCp7ImA9WxNRE08.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-1055511833634138972</id><published>2009-09-07T03:44:00.000-07:00</published><updated>2009-09-07T03:47:15.090-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T03:47:15.090-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL" /><title>MYSQL Data Types</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fCfgYP1c-FyzBhdLy96Ojz4HWOY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fCfgYP1c-FyzBhdLy96Ojz4HWOY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fCfgYP1c-FyzBhdLy96Ojz4HWOY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fCfgYP1c-FyzBhdLy96Ojz4HWOY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;strong&gt;Numeric Data Types:&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;table summary="" width="457" border="1" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="top" width="104"&gt;TINYINT( )&lt;/td&gt;&lt;td valign="top" width="393"&gt;-128 to 127 normal 0 to 255 UNSIGNED.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;SMALLINT( )&lt;/td&gt;&lt;td valign="top"&gt;-32768 to 32767 normal 0 to 65535 UNSIGNED.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;MEDIUMINT( )&lt;/td&gt;&lt;td valign="top"&gt;-8388608 to 8388607 normal 0 to 16777215 UNSIGNED.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;INT( )&lt;/td&gt;&lt;td valign="top"&gt;-2147483648 to 2147483647 normal 0 to 4294967295 UNSIGNED.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;BIGINT( )&lt;/td&gt;&lt;td valign="top"&gt;-9223372036854775808 to 9223372036854775807 normal 0 to 18446744073709551615 UNSIGNED.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;FLOAT&lt;/td&gt;&lt;td valign="top"&gt;A small number with a floating decimal point.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;DOUBLE( , )&lt;/td&gt;&lt;td valign="top"&gt;A large number with a floating decimal point.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;DECIMAL( , )&lt;/td&gt;&lt;td valign="top"&gt;A DOUBLE stored as a string, allowing for a fixed decimal point.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;strong&gt;Date Data Types:&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;table summary="" width="383" border="1" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt; &lt;td valign="top" width="89"&gt;DATE&lt;/td&gt;&lt;td valign="top" width="188"&gt;YYYY-MM-DD.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;DATETIME&lt;/td&gt;&lt;td valign="top"&gt;YYYY-MM-DD H:MM:SS.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;TIMESTAMP&lt;/td&gt;&lt;td valign="top"&gt;YYYYMMDDHHMMSS.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;TIME&lt;/td&gt;&lt;td valign="top"&gt;HH:MM:SS.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;strong&gt;MISC Types&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;table summary="" width="385" border="1" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="top" width="69"&gt;ENUM ( )&lt;/td&gt;&lt;td valign="top" width="310"&gt;ENUMERATION means that each column may have one of specified possible values.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;SET&lt;/td&gt;&lt;td valign="top"&gt;SET is similar to ENUM. However, SET can have up to 64 list items and it can store more than one choice&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;TEXT TYPES&lt;/strong&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;table summary="" width="456" border="1" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt; &lt;td valign="top" width="105"&gt;CHAR( )&lt;/td&gt;&lt;td valign="top" width="345"&gt;Fixed section from 0 to 255 characters long.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;VARCHAR( )&lt;/td&gt;&lt;td valign="top"&gt;Variable section from 0 to 255 characters long.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;TINYTEXT&lt;/td&gt;&lt;td valign="top"&gt;String with a maximum length of 255 characters.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;TEXT&lt;/td&gt;&lt;td valign="top"&gt;String with a maximum length of 65535 characters.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;BLOB&lt;/td&gt;&lt;td valign="top"&gt;String with a maximum length of 65535 characters.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;MEDIUMTEXT&lt;br /&gt;&lt;/td&gt;&lt;td valign="top"&gt;String with a maximum length of 16777215 characters.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;MEDIUMBLOB&lt;/td&gt;&lt;td valign="top"&gt;String with a maximum length of 16777215 characters.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;LONGTEXT&lt;/td&gt;&lt;td valign="top"&gt;String with a maximum length of 294967295 characters.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;LONGBLOB&lt;br /&gt;&lt;/td&gt;&lt;td valign="top"&gt;String with a maximum length of 4294967295 characters.&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-1055511833634138972?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/EZVViJUUWbM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/1055511833634138972/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/mysql-data-types.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/1055511833634138972?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/1055511833634138972?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/EZVViJUUWbM/mysql-data-types.html" title="MYSQL Data Types" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/mysql-data-types.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkUHQXs5cCp7ImA9WxNRE08.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-1664267907832500325</id><published>2009-09-07T03:41:00.000-07:00</published><updated>2009-09-07T03:43:50.528-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T03:43:50.528-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL" /><title>Connecting to MYSQL DataBase</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/xO903_c2yCiomnrKkaYI5pbPKk8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xO903_c2yCiomnrKkaYI5pbPKk8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/xO903_c2yCiomnrKkaYI5pbPKk8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xO903_c2yCiomnrKkaYI5pbPKk8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;In order to pull information from a MySQL database to your php pages, you need to connect to the database first.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Syntax:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;mysql_connect(servername,username,password);&lt;br /&gt;servername: It specifies the server to connect to. Default value is "localhost:3306"&lt;br /&gt;username: It specifies the username to log in with. Default value is the name of the user that owns the server process&lt;br /&gt;password: It specifies the password to login. Default is ""&lt;br /&gt;Note:&lt;br /&gt;To execute the SQL statements we must use the mysql_query() function. This function is used to send a query or command to a MySQL connection.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;$server = "localhost";&lt;br /&gt;$user = "";&lt;br /&gt;$pass = "";&lt;br /&gt;$db = "mydb";&lt;br /&gt;&lt;br /&gt;$conn = mysql_connect("$host", "$user", "$pass") or die ("Unable to connect.");&lt;br /&gt;mysql_select_db("$db", $conn);&lt;br /&gt;?&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Create a Database&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;PHP also provide a function to create MySQL database, mysql_create_db().&lt;br /&gt;$con = mysql_connect("localhost:3306","adam","123456");&lt;br /&gt;if (!$con)&lt;br /&gt;{&lt;br /&gt;die('Could not connect: ' . mysql_error());&lt;br /&gt;}&lt;br /&gt;$query = "CREATE DATABASE mydb";&lt;br /&gt;$result = mysql_query($query,$con);&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-1664267907832500325?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/itD59s4rl7M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/1664267907832500325/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/connecting-to-mysql-database.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/1664267907832500325?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/1664267907832500325?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/itD59s4rl7M/connecting-to-mysql-database.html" title="Connecting to MYSQL DataBase" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/connecting-to-mysql-database.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkcDQns4cSp7ImA9WxNRE08.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-7231299692345455718</id><published>2009-09-07T03:39:00.000-07:00</published><updated>2009-09-07T03:41:13.539-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T03:41:13.539-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PHP" /><title>PHP Data Base</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/LFNWb4RvqeEukOtoGu7sO5QjmHY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LFNWb4RvqeEukOtoGu7sO5QjmHY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/LFNWb4RvqeEukOtoGu7sO5QjmHY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LFNWb4RvqeEukOtoGu7sO5QjmHY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;A database is a collection of data that is stored independently of the manner in which you collect it or may wish to retrieve it. It is organized for efficient storage and retrieval, based on the nature of the data, rather than the collection or retrieval methods.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;What is MySQL&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;MySQL is an open source relational database management system (RDBMS)that uses Structured Query Language (SQL), the most popular language for adding, accessing, and processing data in a database. It is a Database Management System which is available for both Linux and Windows.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;In a database, there are tables. Database tables contain rows, columns, and cells. Tables are used to organize and group your data by common characteristics or principles.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Database Query is a form generator and query manager that works with any database. Database Query automatically creates forms for selecting, updating, inserting, or deleting data in MySQL, Oracle, DB2, or any other database. With MySQL, we can query a database for specific information and have a recordset returned.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-7231299692345455718?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/_QHI2KzI6CM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/7231299692345455718/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/php-data-base.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/7231299692345455718?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/7231299692345455718?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/_QHI2KzI6CM/php-data-base.html" title="PHP Data Base" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/php-data-base.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYNQno6cCp7ImA9WxNRE0w.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-5026385507012400268</id><published>2009-09-07T03:05:00.000-07:00</published><updated>2009-09-07T03:09:53.418-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T03:09:53.418-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PHP" /><title>PHP Error Handling</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/rH2Ta4TQtEYIfv_KsW3iDpebSPw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rH2Ta4TQtEYIfv_KsW3iDpebSPw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/rH2Ta4TQtEYIfv_KsW3iDpebSPw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rH2Ta4TQtEYIfv_KsW3iDpebSPw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Error handling is the process of changing the control flow of a program in response to error conditions. Error conditions can be caused by a variety of factors - programmer error, corrupt input data, software requirements deficiencies and in many other conditions.    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;A web application needs to be able to gracefully handle all of these potential problems - recovering from them where possible and exiting gracefully when the error is fatal.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;We will show different error handling methods:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;   1. Simple "die()" statements&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;   2. Custom errors and error triggers&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;   3. Error reporting&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;Simple die() statement:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;?php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;if(!file_exists("myfile.txt"))&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;die("File not found");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$file=fopen("myfile.txt","r");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;?&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;If the file does not exist you get an error message like this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;File not found&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Custom errors and error triggers&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;You can create a custom error handler in PHP to replace the standard output to the browser. First you set up the error handler to replace the normal one, and set the ini values.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;ini_set('display_errors', 'Off');&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;ini_set('log_errors', 'On');&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;define('ERROR_LOG_PATH', 'error_log.txt');&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;set_error_handler("custom_err_handler");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;The custom function is defined we must then create it. The function takes 4 arguments.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;   1. $num: level of the error raised&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;   2. $str: contains the error message&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;   3. $file: filename that the error was raised in&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;   4. $line: line number the error was raised at&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;function custom_err_handler($num, $str, $file, $line) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;print "Error Handler Called!";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$err = "";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$err .= "PHP Error\n";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$err .= "Number: [" . $num . "]\n";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$err .= "String: [" . $str . "]\n";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$err .= "File: [" . $file . "]\n";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$err .= "Line: [" . $line . "]\n\n";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;error_log($err, 3, ERROR_LOG_PATH);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;function Errfunction()&lt;br /&gt;{&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;trigger_error("errror message");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Now call the Errfunction()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;myFunction();&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-5026385507012400268?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/RqYYJuQmuz8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/5026385507012400268/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/php-error-handling.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/5026385507012400268?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/5026385507012400268?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/RqYYJuQmuz8/php-error-handling.html" title="PHP Error Handling" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/php-error-handling.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUUERH8yfCp7ImA9WxNRE0w.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-5199599238669436915</id><published>2009-09-07T02:49:00.000-07:00</published><updated>2009-09-07T02:53:25.194-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T02:53:25.194-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PHP" /><title>PHP EMail</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FFJhJX8SSvDr9EROLpWlWFZjyfw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FFJhJX8SSvDr9EROLpWlWFZjyfw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/FFJhJX8SSvDr9EROLpWlWFZjyfw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FFJhJX8SSvDr9EROLpWlWFZjyfw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;mail() function is used to send emails from inside a script in php. The Syntax of mail() function is as under.mail(to,subject,message,headers,parameters)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table style="color: rgb(0, 0, 153);" summary="" width="440" border="1" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="top" width="70"&gt;&lt;strong&gt;Parameter&lt;/strong&gt;&lt;/td&gt;&lt;td valign="top" width="674"&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;to&lt;/td&gt;&lt;td valign="top"&gt;Required. Specifies the receivers email&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;subject&lt;/td&gt;&lt;td valign="top"&gt;Required. Specifies the subject of the email&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;message&lt;/td&gt;&lt;td valign="top"&gt;Required. Contain the message to be sent. Each line should be separated with a Line Fed (\n). Lines should not exceed 70 characters&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;headers&lt;/td&gt;&lt;td valign="top"&gt;Optional. Specifies additional headers, like From, Cc, and Bcc. The additional headers should be separated with a CRLF (\r\n)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;parameters&lt;/td&gt;&lt;td valign="top"&gt;Optional. Specifies an additional parameter to the sendmail program.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$to = 'noname@testing.com';&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$subject = 'E-mail subject';&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$message = 'E-mail message';&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$headers = 'From: webmaster@studiesinn.com' . "\r\n" .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;'Reply-To: webmaster@ webmaster.com' . "\r\n" .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;'X-Mailer: PHP/' . phpversion();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;mail($to, $subject, $message, $headers);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;?&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-5199599238669436915?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/zm1qFFhHaeA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/5199599238669436915/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/php-email.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/5199599238669436915?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/5199599238669436915?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/zm1qFFhHaeA/php-email.html" title="PHP EMail" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/php-email.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUUMQX07cSp7ImA9WxNRE0w.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-6523510394478272117</id><published>2009-09-07T02:41:00.000-07:00</published><updated>2009-09-07T02:54:40.309-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T02:54:40.309-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PHP" /><title>PHP Files</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/8WFnddYnYby5nSqbl20mbb6ZicM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8WFnddYnYby5nSqbl20mbb6ZicM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/8WFnddYnYby5nSqbl20mbb6ZicM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8WFnddYnYby5nSqbl20mbb6ZicM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;PHP is a very useful language for working with files. Although it may not be as robust as other languages, such as PERL, when it comes to parsing files, PHP still provides great power and flexibility when it comes to working with text files.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Opening a File:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Before you can use PHP to read a file, you must first open it. To open a file, you use the fopen() function.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$file_handler = fopen($file, $mode)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;You must assign the function to a variable, as above. This is referred to as a file pointer. You use the file pointer to reference the open file throughout your script.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;The fopen() function takes two arguments:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;    * $file is the name (and path, if required) of the file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;    * $mode is one of a list of available modes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;1. r— Open the file as read-only. You cannot write anything to the file. Reading begins at the beginning of the file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;2. r+ — Open the file for reading and writing. Reading and writing begin at the beginning of the file. You will delete existing contents if you write to the file without first moving the internal pointer to the end of the file.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;br /&gt;3. w— Open the file for write-only. You cannot read data from the file. Writing begins at the beginning of the file. You will again delete contents if you write to the file without first moving the pointer to the end of the file. If the file specified by the $fie argument does not exist, then PHP attempts to create the file. Make sure your permissions are set correctly!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;4. w+ — As above, but the file may also be read.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;br /&gt;5. a— This mode is the same as the 'w' mode, with the exception that the internal pointer is placed at the end of the file. Existing contents will not be overwritten unless you rewind the internal pointer to the beginning of the file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;6. a+ — As above, but the file may also be read.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Additionally, if the file is a binary file, you must include a "b" in the mode if your OS is Windows. This chapter only deals with ASCII text files, so you will not require the "b: mode in the following example. If you do need to open a binary file, an example is below:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$file_handle = fopen($filename, "rb+")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Note the differences between the "w" and "a" modes. Using "w" to open a file effectively deletes the contents of the file, while using the "a" mode retains the contents of the file and allows you to append additional data to the end of the file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Once you have the file opened, you can then read from or write to the file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Reading a File:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;There are multiple functions available to read from a file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;You can read data from the file using the fread() function:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$file_contents = fread($file_pointer, $length_to_read);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;You must assign the value of fread() to a variable, which will contain the data that has been read. The fread() function takes two arguments:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;1.      $file_pointer is the file pointer to which you assigned the value from the fopen() function.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;2.      $length is the amount of bytes that you wish to read.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;When using fread() to read a file, you can read in the entire file. To do this, you need to know the byte-size of the file. You can easily find the total byte-size of a file using the filesize() function:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$bytes = filesize($filename);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;The following script demonstrates how to open a short text file and display its contents:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$file = "/path/to/text.txt";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$filepointer = fopen($file, "r");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$contents = fread($filepointer, filesize($file));&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo "&lt;pre&gt;" . htmlentities($contents) . "&lt;/pre&gt;";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Closing a File:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;When you have finished reading from or writing to a file that has been opened using the fopen() function, you should always close it using the fclose() function:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;fclose($filepointer);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Closing the file allows you to clean up any memory that was used to open it and also prevents possible file corruption that sometimes (rarely) occurs when a file is left open.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-6523510394478272117?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/9OwrO_o5tzY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/6523510394478272117/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/php-is-very-useful-language-for-working.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/6523510394478272117?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/6523510394478272117?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/9OwrO_o5tzY/php-is-very-useful-language-for-working.html" title="PHP Files" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/php-is-very-useful-language-for-working.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0MHSXw4cSp7ImA9WxNREks.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-9207032117271929208</id><published>2009-09-06T13:36:00.000-07:00</published><updated>2009-09-06T13:37:18.239-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-06T13:37:18.239-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PHP" /><title>PHP Cookies</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/JJplhOyla2ygLzqiCsUmHS3Liik/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JJplhOyla2ygLzqiCsUmHS3Liik/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/JJplhOyla2ygLzqiCsUmHS3Liik/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JJplhOyla2ygLzqiCsUmHS3Liik/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;A cookie is a small bit of information stored on a viewer's computer by his or her web browser by request from a web page. The information is constantly passed in HTTP headers between the browser and web server; the browser sends the current cookie as part of its request to the server and the server sends updates to the data back to the user as part of its response. In addition to the information it stores, each cookie has a set of attributes: an expiration date, a valid domain, a valid domain path and an optional security flag. These attributes help ensure the browser sends the correct cookie when a request is made to a server.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Syntax:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;setcookie(name, value, expire, path, domain);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;?php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;setcookie("c_name", "Adam", time()+60);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;?&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Retrieve a Cookie:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;The $_COOKIE variable is used to retrieve a cookie.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;?php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo $_COOKIE["user"];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;?&gt;    &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-9207032117271929208?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/JC-K6feRzGE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/9207032117271929208/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/php-cookies.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/9207032117271929208?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/9207032117271929208?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/JC-K6feRzGE/php-cookies.html" title="PHP Cookies" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/php-cookies.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUUNRHc8eip7ImA9WxNREks.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-3001000277352827233</id><published>2009-09-06T12:33:00.000-07:00</published><updated>2009-09-06T13:01:35.972-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-06T13:01:35.972-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PHP" /><title>PHP Fourms</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kuYrm0LnSh9YsyH4t1RIiF9z_kw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kuYrm0LnSh9YsyH4t1RIiF9z_kw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kuYrm0LnSh9YsyH4t1RIiF9z_kw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kuYrm0LnSh9YsyH4t1RIiF9z_kw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Forms are the most fundamental method of interaction for your users. Users must use a form to enter information into a site. Think about it, every bulletin board, shopping cart, feedback form, and poll is a type of form. Without forms, the Web is nothing more than a publishing medium for those who can FTP Web pages up to a server.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;GET &amp;amp; POST Methods:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;There are two methods that you can use when creating a form in HTML. They are post and get, as in:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;form action="”saveinfo.php”" method="post"&gt;&lt;/form&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;&lt; action="”saveinfo.php”" method="post"&gt;&lt;/span&gt;&lt;br /&gt;&lt;p style="font-weight: bold; color: rgb(0, 0, 0);"&gt;or:&lt;/p&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;&lt; action="”saveinfo.php”" method="get"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;If you don't specify a method, then the Web server assumes that you are using the get method. So what's the deal? They do the same thing right? Well, almost. You may have noticed that the URL looks a lot longer after you submit a form that uses the get method. For example, you may see something like:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;http://www.krazy4mobile.com/form.php?name=fred&amp;amp;age=20&amp;amp;comments=This+site+rocks&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;That's because the get method puts the contents of the form right in the URL. There are a few disadvantages to this. First, depending on your Web server's operating system and software, there is a limit to how much data you can send through a form using the get method. On many systems, this limit is 256 characters. Also, the individual get queries may be stored in your Web server logs. If you are using space on a shared server, then other people may be able to decipher data sent from your forms that use the get method.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;The post method was created to correct the inadequacies of the get method. The information sent using the post method is not visible in the URL, and form data cannot be deciphered by looking in the Web server logs. There also isn't such a small limit on the amount of data that can be sent from a form. Again, it depends on your server, but you probably won't ever hit the limit of sending data using the post method for a text-based form.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;I use the post method for my scripts unless I need to debug something. When you need to debug something on a form, it is easy enough to switch to the get method (by changing the action line in your script) and then check the URL after you submit your buggy form. You can usually pick up typos and such with a quick look.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt; action="display.php" method="get"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Name: &lt; type="text" name="name"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Age: &lt; type="text" name="age"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt; type="submit"&gt;&lt;br /&gt;&lt;br /&gt;&lt;  /  form  &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;When you click the "Submit" button on the form the URL sent could look something like this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;http://www.krazy4mobile.com/display.php?name=adam&amp;amp;age=22&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;On display.php page you can retrieve the value by using the following code&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Welcome .&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;You are  years old!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;The $_REQUEST Variable:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;The PHP $_REQUEST variable can be used as the replacement of $_GET, $_POST, and $_COOKIE. The $_REQUEST variable can be used to get the result from form data sent with both the GET and POST methods.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;form action="display.php" method="post"&gt;&lt;/form&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt; action="display.php" method="post"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Enter your name: &lt; type="text" name="name"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Enter your age: &lt; type="text" name="age"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt; type="submit"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;  /form  &gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;When you click the Submit button on the form, following URL will be sent.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;http://www.krazy4mobile.com/display.php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;On display.php page you can retrieve the value as&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Welcome &lt; ?php  echo  $_POST["name"];   ?&gt; .&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;YOU are&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; &lt; ?php  echo  $_POST["age"];   ?&gt; .   &lt;/span&gt;years old!&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-3001000277352827233?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/V51VRz54l5Y" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/3001000277352827233/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/php-fourms.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/3001000277352827233?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/3001000277352827233?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/V51VRz54l5Y/php-fourms.html" title="PHP Fourms" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/php-fourms.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUIEQHc6cCp7ImA9WxNREk4.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-1452711367949455835</id><published>2009-09-06T04:43:00.000-07:00</published><updated>2009-09-06T04:45:01.918-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-06T04:45:01.918-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PHP" /><title>PHP Functions</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7_uH7Zl5T5BXjkSHxFvFnpmIQBk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7_uH7Zl5T5BXjkSHxFvFnpmIQBk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7_uH7Zl5T5BXjkSHxFvFnpmIQBk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7_uH7Zl5T5BXjkSHxFvFnpmIQBk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;In addition to PHP's built-in functions, you can create your own functions. Remember that if you want to use variables that exist outside of the function, then you must declare them as global variables or assign them as arguments to the function itself.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;function check_age($age) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;if ($age &gt; 21) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;return 1;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;} else {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;return 0;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;//usage:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;if(check_age($age)) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo "You may enter!";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;} else {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo "Access Not Allowed!";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;exit();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;The function would be called from within your script at the appropriate time, using the following syntax:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$age = 10;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;check_age($age);    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;function simpletable($text) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;print("&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tr&gt;");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;print("&lt;td&gt;$text&lt;/td&gt;");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;print("&lt;/tr&gt;&lt;/table&gt;");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;phpinfo( )&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;phpinfo() is a very useful function that allows you to see what version of PHP is running on your Web server, as well as all of the specific settings that are enabled in that version.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;phpinfo();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;?&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-1452711367949455835?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/ijFNTppcP2g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/1452711367949455835/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/php-functions.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/1452711367949455835?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/1452711367949455835?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/ijFNTppcP2g/php-functions.html" title="PHP Functions" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/php-functions.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUQAR30zfSp7ImA9WxNRE0w.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-7039295386103138933</id><published>2009-09-06T04:40:00.000-07:00</published><updated>2009-09-07T02:55:46.385-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T02:55:46.385-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PHP" /><title>PHP Loops</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/X-y_QSdcrvCd5Z3nQsGTIBTDP8g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/X-y_QSdcrvCd5Z3nQsGTIBTDP8g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/X-y_QSdcrvCd5Z3nQsGTIBTDP8g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/X-y_QSdcrvCd5Z3nQsGTIBTDP8g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Loops are used to repeat statement or block of statement more than one time. The idea of a loop is to do something over and over again until the task has been completed&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;In PHP we have the following looping statements:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;For Loop:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;For loops are useful constructions to loop through a finite set of data, such as data in an array.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Syntax:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;for ( initialization; conditional statement; increment/decrement){&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;statement(s);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;   1. Initialization—You can pass in an already assigned variable or assign a value to the variable in the for statement.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;   2. The condition required to continue the for loop— The statements are executed until the given condition goes false.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;   3. Statement to modify the counter on each pass of the loop.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;for ($i=1; $i&lt;=10; $i++)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo "Hello World&lt;br /&gt;";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;?&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Foreach Loop:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Foreach loops allow you to quickly traverse through an array.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$array = array("name" =&gt; "Jet", "occupation" =&gt; "Bounty Hunter" );&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;foreach ($array as $val) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo "&lt;p&gt;$val";&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Prints out:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;p&gt;Jet&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;p&gt;Bounty Hunter&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;You can also use foreach loops to get the key of the values in the array:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;foreach ($array as $key =&gt; $val) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo "&lt;p&gt;$key : $val";&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Prints out:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;p&gt;name : Jet&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;p&gt;occupation : Bounty Hunter&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;While Loop:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;While loops are another useful construct to loop through data. While loops continue to loop until the expression in the while loop evaluates to false. A common use of the while loop is to return the rows in an array from a result set. The while loop continues to execute until all of the rows have been returned from the result set.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Syntax:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;while (condition){&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;statement(s);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$i=1;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;while($i&lt;=9)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo "The number is " . $i . "&lt;br /&gt;";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$i++;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;?&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Do-While Loop:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Do while loops are another useful loop construct. Do while loops work exactly the same as normal while loops, except that the script evaluates the while expression after the loop has completed, instead of before the loop executes, as in a normal while loop.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;The important difference between a do while loop and a normal while loop is that a do while loop is always executed at least once. A normal while loop may not be executed at all, depending on the expression. The following do while loop is executed one time, printing out $i to the screen:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$i = 0;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;do {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;print $i;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;} while ($i&gt;0);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Whereas the following is not executed at all:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$i = 0;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;while($i &gt; 0) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;print $i;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Arrays:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;An array is a data structure that stores one or more values in a single value. PHP supports both numerical arrays (array items are indexed by their numerical order) as well as associative arrays (array items are indexed by named keys).&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$a = array(1, 2, 3, 4);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;//$a[0] = 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;//$a[1] = 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;//$a[2] = 3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;//$a[3] = 4&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$b = array("name"=&gt;"Fred", "age" =&gt; 30);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;//$b['name'] = "Fred"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;//$b['age'] = 30&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-7039295386103138933?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/-xk2TfixB4M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/7039295386103138933/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/php-loops.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/7039295386103138933?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/7039295386103138933?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/-xk2TfixB4M/php-loops.html" title="PHP Loops" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/php-loops.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUIARng_eyp7ImA9WxNRE0w.&quot;"><id>tag:blogger.com,1999:blog-2689288109984160830.post-4380862705908477841</id><published>2009-09-06T04:36:00.000-07:00</published><updated>2009-09-07T02:59:07.643-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-07T02:59:07.643-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PHP" /><title>PHP Control Structure</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/WlzdXWbFDYJf-y4Rs589-QaECnc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WlzdXWbFDYJf-y4Rs589-QaECnc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/WlzdXWbFDYJf-y4Rs589-QaECnc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WlzdXWbFDYJf-y4Rs589-QaECnc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;If ... Else Statement&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;One of the most common PHP language constructs that you will encounter is the if…then statement. The if…then statement allows you to evaluate an expression and then, depending if it is true or not, take a course of action. For example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$x = 1;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;if($x) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo "True!";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Since $x = 1, then PHP interprets it in the context of the if statement to be a boolean type. Since 1 = true, the if statements prints out the message. Literally you can read it as "If True, then print out "True!".&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Another example, but this time with an "else" clause:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$a = 5;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$b = "10";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;if($a &gt; $b) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo "$a is greater than $b";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;} else {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo "$a is not greater than $b";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;PHP doesn't care that $a is an integer and $b is a string. It recognizes that $b also makes a pretty good integer as well. It then evaluates the expression, "If $a is greater than $b then print out that $a is greater than $b; if not (else) then print out $a is not greater than $b." It's also important to note that you don't say, "$a is less than $b," since it is possible that $a could be equal to $b. If that is the case, then the second part of the expression, the else statement, is the part that runs.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Note the use of brackets to enclose the actions. Also note the lack of semicolons where the brackets are used.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;One final example is the if…elseif…else statement:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;if($a == $b) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;// do something&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;} elseif ($a &gt; $b) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;// do something else&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;} elseif($a &lt; $b) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;// do yet something else&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;} else {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;// if nothing else we do this...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;Switch Statement:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;The Switch statement is used to perform one of several different actions based on one of several different conditions. Switch statements allow for additional evaluations of the data, even though one of the cases may have been met. Switch statements can also save you from typing many if…elseif…elseif… statements.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Syntax:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;switch (expression)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;case label1:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Statement(s);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;case label2:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Statement(s);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;default:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Statement(s);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;$a = "100";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;switch($a) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;case(10):&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo "The value is 10";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;case (100):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo "The value is 100&lt;br /&gt;";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;case (1000):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo "The value is 1000";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;default:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;echo "&lt;p&gt;Wrong Input"&lt;/p&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;switch statements have four basic parts:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;   1. The switch— The switch identifies what value or expression is going to be evaluated in each of the cases. In the example above, you tell the switch statement that you are going to evaluate the variable $a in the subsequent cases.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;   2. The case— The case statement evaluates the variable you passed from the switch command. You can use case() the same way you'd use an if statement. If the case holds true, then everything after the case statement is executed, until the parser encounters a break command, at which point execution stops and the switch is exited.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;   3. Breakpoints— Defined by the break command, exit the parser from the switch. Breakpoints are normally put after statements executed when a case() is met.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;   4. Default— The default is a special kind of case. It is executed if none of the other case statements in the switch have been executed.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2689288109984160830-4380862705908477841?l=learncoursesonline.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/LearnCoursesOnline/~4/-p-L89tw17A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://learncoursesonline.blogspot.com/feeds/4380862705908477841/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://learncoursesonline.blogspot.com/2009/09/control-structure.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/4380862705908477841?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2689288109984160830/posts/default/4380862705908477841?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LearnCoursesOnline/~3/-p-L89tw17A/control-structure.html" title="PHP Control Structure" /><author><name>Zeeshan</name><uri>http://www.blogger.com/profile/12461177024218552942</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://2.bp.blogspot.com/-sr__9KpWamk/TYHEStUAz0I/AAAAAAAAAPM/XfQo2PpmBfw/s220/depression-1_4.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://learncoursesonline.blogspot.com/2009/09/control-structure.html</feedburner:origLink></entry></feed>

