| ||
| First thing, you have to know some HTML code before trying to use PHP because PHP interact with HTML. In an HTML page, you can start a PHP code by using this quote : PHP Code: mydocument.php and not anymore as mydocument.html First code : Open a new document and write : PHP Code: Whaoo you could see "Hello word" on your document. As you can understand 'echo' means display on the browser. Echo is a function of PHP, like a lot of others as you can see at http://www.php.net Each function need to be ending by a ";" in order to say that your function is finished (the function not the code). A lot of errors on coding is to forget this ";". Now you could also insert some html code : PHP Code: If we want to comment a code, you could use : PHP Code: We saw "hello word", but you can write also : PHP Code: A variable could be a word, a letter or a number or others variable : PHP Code: PHP Code: PHP Code: | ||
|
![]() |
| Thread Tools | |