51. Many more tags .. http://www.w3schools.com/tags/default.asp
52. HTML elements can have attributes Attributes provide additional information about the element Attributes are always specified in the start tag Attributes come in name/value pairs like: name="value" Standard attributes : class ,id , style ,title Attributes
102. Operator Description = Equal <> Not equal > Greater than < Less than >= Greater than or equal <= Less than or equal BETWEEN Between an inclusive range LIKE Search for a pattern IN If you know the exact value you want to return for at least one of the columns
103.
104. The OR operator displays a record if either the first condition or the second condition is true.
105.
106. The ORDER BY keyword sort the records in ascending order by default.
107. If you want to sort the records in a descending order, you can use the DESC keyword.
145. Basic PHP Syntax Comments // --> used for single line commenting /*.....*/ --> multi-line commenting Variables $var ---- is the way of naming variable No need of declaration. Is declared and assigned as soon as we use it in code
146.
147. Strings can be defined as single quotes(') or double quotes (“).
152. Arrays What is an array ? $person = array("Dave", "Adam", "Ralph"); Assingning values, $person[“Dave”] = ”Mumbai”; So, on echo-ing we get output as Mumbai . echo $person[“Dave”]; PS: Ask public , defn of array and describe arrays on blackboard
153. Associative arrays Arrays can also be associated in values implicitly. These are called associative arrays. $food = array("Monday" => "Apples", "Tuesday" => "Bananas"); $myArray["Monday"] = "Apples"; $myArray["Tuesday"] = "Bananas"; Arrays
159. While continues to loop a statement till a given condition is satisfied. while(condition) { statement; } ( PS: Write a code to demonstrate while looping)
163. Functions Functions are snippets of code which are used can be called anywhere in the program. Users can define their functions as they do in C. Apart from that , PHP has got a bunch of in-built functions for various tasks. (In short, making life easier for web developers!)
165. <form> First name: <input type="text" name="firstname" /> <br /> Last name: <input type="text" name="lastname" /> </form> Forms First name: Last name:
169. Action : “url” . Defines the name of the file to send the content to .
170. Eg : <form name="input" action=“form_process.php" method="get"> Attributes of FORM
171. <form> I use Fedora: <input type="checkbox" name="vehicle" value="Fedora" /> <br /> I use Ubuntu: <input type="checkbox" name="vehicle" value="Ubuntu" /> <br /> I dont use Windows: <input type="checkbox" name="vehicle" value="Windows" /> </form> Checkboxes
175. Form Handling To access GET and POST values in the php page, use variable-array $_GET or $_POST respectively. e.g. <? php $name=$_GET['txt1']; echo $name; ?> name of textbox