ADDITIONAL INFORMATION PLEASE ??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ADDITIONAL INFORMATION PLEASE ?? 


` 1. Write the symbols used to start PHP codes inside an HTML document?


2. What are the rules regarding single quotes and double quotes when using the
echo commnand?


3. Name some guidelines in naming variables in PHP.


4. Write 3 lines of codes showing how HTML tags can be used inside PHP tags.

5. Define:
 -Local variables
 -register_global

MY ANSWERS:
Q1:
- SYMBOLS:
<?
?>
$

Q2:
- RULES IN:
-> SINGLE QUOTE
1.USING QUOTE WILL PRING THE VARIABLE NAME, NOT THE VALUE
2.MULTIPLE PARAMETERS TO ECHO OVER CONCATINATION
3.USE SINGLE QUOTE FOR QUOTES INSIDE THE STRING

-> DOUBLE QUOTES
1.YOU CAN USE VARIABLE INSIDE OF AN ECHO STATEMENT
2.OUTPUT A VARIABLE
3. DISPLAY THE STRING

Q3:
- GUIDELINES IN NAMING VARIABLES:
1.A variable name must begin with a letter, underscore, or Unicode currency
symbol.
2.The initial character can by followed by any number of letters, numbers,
underscore characters, and Unicode currency symbols.
3.A variable name cannot contain spaces.
4.A query result is a type of variable, so it cannot have the same name as
another local variable in the current ColdFusion application page.
5.ColdFusion variables are not case-sensitive. However, consistent
capitalization makes the code easier to read.
6.When creating a form with fields that are used in a query, match form field
names with the corresponding database field names.


ADDITIONAL INFORMATION PLS???





[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux