Accéder au contenu principal

Articles

PHP MySQL login

This tutorial demonstrates how to create a login page with MySQL Data base. Before enter into the code part, You would need special privileges to create or to delete a MySQL database. So assuming you have access to root user, you can create any database using mysql mysqladmin binary. Config.php Config.php file is having information about MySQL Data base configuration. <? php define ( 'DB_SERVER' , 'localhost:3036' ); define ( 'DB_USERNAME' , 'root' ); define ( 'DB_PASSWORD' , 'rootpassword' ); define ( 'DB_DATABASE' , 'database' ); $db = mysqli_connect ( DB_SERVER , DB_USERNAME , DB_PASSWORD , DB_DATABASE ); ?> Login.php Login PHP is having information about php script and HTML script to do login. <? php include ( "config.php" ); session_start (); if ( $_SERVER [ "REQUEST_METHOD" ] == "POST" ) { // username and password sent...
Articles récents

طريقة الحصول على بطاقة ماستركارد Mastercard افتراضية مجانا

طريقة الحصول على بطاقة ماستركارد   Mastercard افتراضية مجانا كيفية الحصول على بطاقة ائتمان "ماستر كارد"  Mastercard VCC الكترونية بالمجان تشتغل 100 % قابلة للشحن بعدت طرق , اسهل طريقة للحصول على بطاقة الكترونية بدون اي شروط , يمكن استعمالعا على المواقع التي تطلب التاكيد ببطاقة بنكية للاستفادة من الخدمات المجانية مثل VPS جوجل , VPS امازون و العديد من المواقع التي تقدم خدمات مقابل التاكيد بالبنوك الالكترونية طريقة الحصول على بطاقة ماستركارد Mastercard افتراضية مجانا اليوم سوف نقدم لكم طريقة الحصول على بطاقة افتراضية ماستر كارد  Mastercard مجانية VCC , بها ارقام الحساب مع تاريخ نهاية الصلاحية و ثلاثة ارقام سرية  , كل هذه البيانات التي تطلبها منك المواقع لتفعيل اي حساب تريد تجربته بالمجان مثل موقع امزون الذي يوفر VPS لمدة سنة كاملة مجانا . العرض من طرف ياندكس الروسي Yandex هو متعدد الخدمات مثل جوجل , يحتوي على محرك بحث , بريد الكتروني و الذي يهمنا في هده التدوينة هو Money Yandex المصرف او البنك الالكتروني , حيث يمكنك من خلاله الحصول على بطاقة افتراضية بمجرد ال...

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: