Posts

PHP MYSQL -Variables, Data Types - 4

 PHP Variables PHP Variables are "containers" for storing information. A variable can have a short name (like m and n) or a more descriptive name (age, carname, total_volume). Rules for PHP variables: A variable starts with the $ sign, followed by the name of the variable A variable name must start with a letter or the underscore character A variable name cannot start with a number A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ ) Variable names are case-sensitive ($id and $ID are two different variables) Eg: $student_name $s1 $s2 PHP Data Types      Variables can store data of different types, and different data types can do different things. PHP supports the following data types: String Integer Float (floating point numbers - also called double) Boolean Array Object NULL Resource Ex1 : <?php $str = "Vesrn"; echo $str; ?> Ex2 <?php $str1 = "Vesrn"; $str2 = "Technologies"; echo $str1.$str2; ?>

PHP MYSQL - Syntax - 3

  Basic PHP Syntax A PHP script is executed on the server only, and the plain HTML result is sent back to the browser. A PHP script can be placed anywhere in the document. However, A PHP script starts with <?php and ends with ?>: A PHP file normally contains HTML tags, and some PHP scripting code. Example <html> <body> <h1>My first PHP page</h1> <?php echo "Hello World!"; ?> </body> </html> Video

Test your Excel Skills - 2

Image
Excel Skills - 2 Loading…