Accéder au contenu principal

Articles

Affichage des articles du octobre, 2016

calendar php

With our jQuery availability calendar you can - set unavailable dates via the JS integration code - single dates or recurring dates - use PHP data feed file to dynamically specify unavailable dates which are stored in MySQL database - change week starting day - translate week dates - show multiple months - put multiple different calendars on same web page There is also external dateTimePicker . css file where all the styles can be easily updated . For example this class . datetimepicker table td . unavailable is used for the unavailable dates on your calendar visite :

Output Variables

Output Variables   The PHP echo statement is often used to output data to the screen.   The following example will show how to output text and a variable: Example <?php $txt = "W3Schools.com" ; echo "I love $txt !" ; ?> show exemple ;

Creating (Declaring) PHP Variables

Creating (Declaring) PHP Variables   In PHP, a variable starts with the $ sign, followed by the name of the variable: Example <?php $txt = "Hello world!" ; $x = 5 ; $y = 10.5 ; ?>   After the execution of the statements above, the variable $txt will hold the value Hello world!, the variable $x will hold the value 5, and the variable $y will hold the value 10.5.   Note: When you assign a text value to a variable, put quotes around the value.   Note: Unlike other programming languages, PHP has no command for declaring a variable. It is created the moment you first assign a value to it.   Think of variables as containers for storing data.   show exemple:

Basic PHP Syntax

Basic PHP Syntax   A PHP script can be placed anywhere in the document.   A PHP script starts with <?php and ends with ?> : <?php // PHP code goes here ?>   The default file extension for PHP files is ".php".   A PHP file normally contains HTML tags, and some PHP scripting code.   Below, we have an example of a simple PHP file, with a PHP script that uses a built-in PHP function "echo" to output the text "Hello World!" on a web page: