Dashboard Temp Share Shortlinks Frames API

djdj - HTMLify profile

files of /djdj/php/Programs/

Add-Two-No.php /djdj/php/Programs/Add-Two-No.php
488 Views
0 Comments
<?PhP
// php is case insensitive programming lang.
//with three variable
$a = 10;
$b = 5;
$c = $a + $b;
EcHo ($
Associative-Array.php /djdj/php/Programs/Associative-Array.php
656 Views
0 Comments
<?php
//Numeric Array or Index Array
$arr = array('ram','shiv','kumar','arjun');

echo $arr[0];
echo $arr[1];

Create-some-new.php /djdj/php/Programs/Create-some-new.php
736 Views
0 Comments
<?php

$add = false;
$update = false;
$delete = false;
// Connecting to the Db
$servername = "localhost";
Data-Types.php /djdj/php/Programs/Data-Types.php
612 Views
0 Comments
<?php
$name = "Dj"; //String
$salary = 5000000; //Interger
$experience = 1.5; //Float
$bonus = "50.25k";//Decim
Dates.php /djdj/php/Programs/Dates.php
586 Views
0 Comments
<?php
//dates in php

echo date("d"). "\n"; //Print date of today : 24
echo date("j"). "\n"; //Print dat
Delete-The-Record.php /djdj/php/Programs/Delete-The-Record.php
628 Views
0 Comments
<?php

// Connecting to the Db
$servername = "localhost";
$username = "root";
$password = "";
$database = "f
Displaying-Data.php /djdj/php/Programs/Displaying-Data.php
603 Views
0 Comments
<?php

// Connecting to the Db
$servername = "localhost";
$username = "root";
$password = "";
$database = "f
Files.php /djdj/php/Programs/Files.php
597 Views
0 Comments
<?php
//for read the file
readfile('yoursfile.txt'); //for only read the file
echo readfile('yoursfil
For-Loop.php /djdj/php/Programs/For-Loop.php
573 Views
0 Comments
<?php
//for loop
for ($i=0; $i <= 10; $i++) {
echo $i;
}
?>
Foreach-Loop.php /djdj/php/Programs/Foreach-Loop.php
633 Views
0 Comments
<?php
// foreach loop in php
$arr = array('Apple','Banana','Grapes','Mango');

//this is a simply a for loop that us
Form.php /djdj/php/Programs/Form.php
676 Views
0 Comments
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" c
Function.php /djdj/php/Programs/Function.php
582 Views
0 Comments
<?php
//Function in php
$ram = [90, 88, 85, 95, 91];
$sum = marks($ram); // function call
$ave = avera($ram);//
Get-Method.php /djdj/php/Programs/Get-Method.php
578 Views
0 Comments
<?php
if($_SERVER['REQUEST_METHOD'] == 'GET'){//if (isset($_GET)){
$name = $_GET['name'];
$email = $_GET['em
Hello.php /djdj/php/Programs/Hello-World.php
601 Views
0 Comments
<?php
echo "Hello World!";
?>


<!--
For embedding/use PHP we have to use <?php ?>
all the php code will goes within the <?php
If-else.php /djdj/php/Programs/If-else.php
601 Views
0 Comments
<?php
$a = 5;
$b = 2000;
$c = 2016;

if($a > 2){
echo "a is greater than 2\n";
}
Insert-Data-In-Table.php /djdj/php/Programs/Insert-Data-In-Table.php
543 Views
0 Comments
<?php

//for connection to database
$servername = "localhost";
$username = "root";
$password = "";
$database
Multi-Dieminsion-Array.php /djdj/php/Programs/Multi-Dieminsion-Array.php
592 Views
0 Comments
<?php
//Multi Dieminsion Array
$md = array(
array(2,5,7,8),
array(1,2,3,1),
array(5,6,7,2));

MySQL-Databases-Connection.php /djdj/php/Programs/MySQL-Databases-Connection.php
614 Views
0 Comments
<?php
//Database Connection

/*There are two ways to connect to My SQL Database
1. MySQLi extension (for use only m
MySQL-Table.php /djdj/php/Programs/MySQL-Table.php
628 Views
0 Comments
<?php

//for connection to database
$servername = "localhost";
$username = "root";
$password = "";
$database
MySqL-Database.php /djdj/php/Programs/MySqL-Database.php
586 Views
0 Comments
<?php

//for connection to database
$servername = "localhost";
$username = "root";
$password = "";

//create
Operator.php /djdj/php/Programs/Operator.php
573 Views
0 Comments
<?php
/*Operators
1. Arithmetic Operator
2. Assignment Operator
3. Comparison Operator
4. Logical Operator
*/
$a = 10;
Post-Method.php /djdj/php/Programs/Post-Method.php
639 Views
0 Comments
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST'){//if (isset($_POST)){
$name = $_POST['name'];
$email = $_POST
Programs /djdj/php/Programs/Programs/
35 Items
  • Add-Two-No.php
  • Associative-Array.php
  • Create-some-new.php
  • Data-Types.php
  • Dates.php
  • Displaying-Data.php
  • Files.php
  • Files2.php
  • Require-Include.php /djdj/php/Programs/Require-Include.php
    566 Views
    0 Comments
    <?php

    echo"Include:<br>";
    //include
    include 'MySQL-Databases-Connection.php'; //include will only produce a warning
    Scope-Local-Global-Variable.php /djdj/php/Programs/Scope-Local-Global-Variable.php
    620 Views
    0 Comments
    <?php
    $a = 50; // Global Variable

    function paste(){
    $a = 10; // Local Variable
    echo $a. "\n";
    g
    Simple-Print.php /djdj/php/Programs/Simple-Print.php
    555 Views
    0 Comments
    <?php
    echo 'hello dj';
    ?>
    String.php /djdj/php/Programs/String.php
    574 Views
    0 Comments
    <?php

    $name = 'SabkaCode';
    echo $name; //simple print name
    echo "\n";
    echo "The length of string ".strlen($name
    Switch-Case.php /djdj/php/Programs/Switch-Case.php
    616 Views
    0 Comments
    <?php
    $age = 30;
    switch($age){
    case 18:
    echo "You are eligible for vote\n";
    break;

    Update-Data-Where-Clause.php /djdj/php/Programs/Update-Data-Where-Clause.php
    581 Views
    0 Comments
    <?php

    // Connecting to the Db
    $servername = "localhost";
    $username = "root";
    $password = "";
    $database = "f
    Variable.php /djdj/php/Programs/Variable.php
    584 Views
    0 Comments
    <?php
    $name = "Dj";
    echo "This is $name";

    /*
    1. start with a $ sign.
    2. cannot satrt with a number.
    3. must start with
    While-loop.php /djdj/php/Programs/While-loop.php
    590 Views
    0 Comments
    <?php
    //while loop
    $i = 1;
    while($i<=10){
    echo $i. "\n";
    $i++;
    }
    ?>
    do-while-loop.php /djdj/php/Programs/do-while-loop.php
    601 Views
    0 Comments
    <?php
    //do while loop
    $a = 0;
    do {
    echo $a;
    $a++;
    } while ($a <= 10);
    ?>
    yoursfile.txt /djdj/php/Programs/yoursfile.txt
    625 Views
    0 Comments
    this is testing file create