-->

ABOUT US

Our development agency is committed to providing you the best service.

OUR TEAM

The awesome people behind our brand ... and their life motto.

  • Kumar Atul Jaiswal

    Ethical Hacker

    Hacking is a Speed of Innovation And Technology with Romance.

  • Kumar Atul Jaiswal

    CEO Of Hacking Truth

    Loopholes are every major Security,Just need to Understand it well.

  • Kumar Atul Jaiswal

    Web Developer

    Techonology is the best way to Change Everything, like Mindset Goal.

OUR SKILLS

We pride ourselves with strong, flexible and top notch skills.

Marketing

Development 90%
Design 80%
Marketing 70%

Websites

Development 90%
Design 80%
Marketing 70%

PR

Development 90%
Design 80%
Marketing 70%

ACHIEVEMENTS

We help our clients integrate, analyze, and use their data to improve their business.

150

GREAT PROJECTS

300

HAPPY CLIENTS

650

COFFEES DRUNK

1568

FACEBOOK LIKES

STRATEGY & CREATIVITY

Phasellus iaculis dolor nec urna nullam. Vivamus mattis blandit porttitor nullam.

PORTFOLIO

We pride ourselves on bringing a fresh perspective and effective marketing to each project.

Showing posts with label google. Show all posts
Showing posts with label google. Show all posts
  • Adding content in table with the help of PHP and MySQL

     

    adding content in table with the help of PHP and MySQL

     

    There are different programming languages currently in use, of which some are open source while others are proprietary. Open source basically refers to a program in which the source code is available to the public, free of cost, for use or for modification from its original design.

    Here we will create table in database section for which we will use programmatic method with the help of PHP and MYSQL .


    Write a program to Add Content in Table with the help of PHP and MySQL ? 

     

    Syntax of PHP


     <?php

     

     //Content goes here 

     

    ?>

     

     


     

    <?php
    
    require_once("connectionstring.php");
    
    $host = 'localhost';
    $user = 'root';
    $pwd = '';
    $db = 'loginpanel';
    
    $conn = mysqli_connect($host, $user, $pwd, $db);
    
    // connection check
    
    if(!$conn)
    {
    	die("Connection failed : " . mysqli_connect_error());
    }
    
    
    $sqltable = "INSERT INTO `logintable` (`id`, `email`, `password`) 
    VALUES ('3', 'kumaratuljaiswal.com@gmail.com', 'truth@.inatul#!43')";
    
    
    
    if(mysqli_query($conn, $sqltable))
    {
    		echo "Adding Table Content Created Successfully";
    }
    else 
    {
    	echo "Error adding table content : " . mysqli_error($conn);
    }
    
    
    
    
    mysqli_close($conn);
    
    
    
    ?>
    

     

     

     


     

     

     

     

     Explaination

     

     => $host = 'localhost';  $host is a variable which is used to store a value like localhost and localhost
    is our server.


    => $user = 'root'; $user as it same just like above the sentence but here is one difference and the difference
    is that its a user like root user of our xampp machine localhost.


    => $pwd = ''; 
     

    In this variable here is empty value of $pwd variable because we dont want any type of problem means no need of authentication.


    => $db = 'loginpanel'; - Loginpanel is our database name.


    Now you must be thinking what is this authentication!! dont worry click here for more information.


    => $conn is our new variable.


    => mysqli_connect() - The mysqli_connect() function attempts to open a connection to the MySQL Server running on host which can be either a host name or an IP address.


    Passing the NULL value or the string "localhost" or variable name to this parameter.

    Now we will check the connection whether the connection is working successfully or not!!  Actually here we will  "if and else" condition.


    => die()  - The die() function prints a message and exits the current script.


    => $sqltable - its a variable but in this variable we store the mysql query for inserting content in  table
    according to our demand.


    =>  mysqli_query() -  mysqli_query() what it returns. The return value could be a boolean(true/false)


     

     


    Disclaimer

     

    All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.

     

  • Create a table and its column with the help of PHP and MySQL

     

     

    Create a table and its column with the help of PHP and MySQL

     

     

    There are different programming languages currently in use, of which some are open source while others are proprietary. Open source basically refers to a program in which the source code is available to the public, free of cost, for use or for modification from its original design.

    Here we will create table in database section for which we will use programmatic method with the help of PHP and MYSQL .


    Write a program to create a Table and its column with the help of PHP and MySQL ? 

     

     

    Syntax of PHP


     <?php

     

     //Content goes here 

     

    ?>

     

     

    <?php
    
    $host = 'localhost';
    $user = 'root';
    $pwd = '';
    $db = 'loginpanel';
    
    $conn = mysqli_connect($host, $user, $pwd, $db);
    
    
    
    if(!$conn)
    {
    	die("Network Problem");
    	
    }
    
    $sql = "CREATE TABLE `loginpanel`.`logintable` ( `id` INT NULL AUTO_INCREMENT , `email` VARCHAR(50) NOT NULL , 
               `password` VARCHAR(100) NOT NULL , PRIMARY KEY (`id`))";
    		 
    
    $result = mysqli_query($conn, $sql);
    
    if($result) 
    {
    	echo  "The table has been created successfully";
    }
    else {
    	echo "The table has not been created because of this error ---> " .mysqli_error($conn);
    }
    
    
    ?>
    
    

     

     

     Explaination

     

     => $host = 'localhost';  $host is a variable which is used to store a value like localhost and localhost
    is our server.


    => $user = 'root'; $user as it same just like above the sentence but here is one difference and the difference
    is that its a user like root user of our xampp machine localhost.


    => $pwd = ''; 
     

    In this variable here is empty value of $pwd variable because we dont want any type of problem means no need of authentication.


    => $db = 'loginpanel'; - Loginpanel is our database name.


    Now you must be thinking what is this authentication!! dont worry click here for more information.


    => $conn is our new variable.


    => mysqli_connect() - The mysqli_connect() function attempts to open a connection to the MySQL Server running on host which can be either a host name or an IP address.


    Passing the NULL value or the string "localhost" or variable name to this parameter.

    Now we will check the connection whether the connection is working successfully or not!!  Actually here we will  "if and else" condition.


    => die()  - The die() function prints a message and exits the current script.


    => $sql - its a variable but in this variable we store the mysql query for creating a table and its column
    according to our demand.


    =>  mysqli_query() -  mysqli_query() what it returns. The return value could be a boolean(true/false)



     

    Simply run in your favourite browser by xampp server



    Disclaimer

     

    All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.

     

     


  • Create a Database with the help of PHP and MySQL

     

    Create a Database with the help of PHP and MySQL

     

     

    There are different programming languages currently in use, of which some are open source while others are proprietary. Open source basically refers to a program in which the source code is available to the public, free of cost, for use or for modification from its original design.

     

    Here we will create database for which we will use programmatic method with the help of PHP and MYSQL .

     

    Write a program to create a Database with the help of PHP and MySQL ? 

     

     Syntax of PHP

     <?php

     

     //Content goes here 

     

    ?>

     

    NOTE - // double forward slash is the comment in PHP.

     

     

    <?php
    
    $host = 'localhost';
    $user = 'root';
    $pwd = '';
    
    $conn = mysqli_connect($host, $user, $pwd);
    
    
    
    if(!$conn )
    {
    	die("Connection failed : " . mysqli_connect_error());
    }
    
    
    $sql = "CREATE DATABASE loginpanel";
    
    if(mysqli_query($conn, $sql))
    {
    	echo "Database created successfully";
    }
    else {
    	echo "Error Creating Database : " . mysqli_errno($conn);
    }
    mysqli_close($conn);
    
    
    ?>
    
    





    Explaination


    => $host = 'localhost';  $host is a variable which is used to store a value like localhost and localhost
    is our server.


    => $user = 'root'; $user as it same just like above the sentence but here is one difference and the difference is that its a user like root user of our xampp machine localhost.


    => $pwd = '';   

    In this variable here is empty value of $pwd variable because we dont want any type of problem means no need of authentication.

    Now you must be thinking what is this authentication!! dont worry click here for more information.


    => $conn is our new variable.


    => mysqli_connect() - The mysqli_connect() function attempts to open a connection to the MySQL Server running on host which can be either a host name or an IP address.

    Passing the NULL value or the string "localhost" or variable name to this parameter.

    Now we will check the connection whether the connection is working successfully or not!!  Actually here we will  "if and else" condition.

    => die()  - The die() function prints a message and exits the current script.

    => mysqli_connect_error() - PHP mysqli_connect_error() function returns an string value representing the description of
    the error from the last connection call, incase of a failure. If the connection was successful
    this function returns Null.

    =>  mysqli_error()  - The mysqli_error() function is used to return the error in the most recent MySQL function call that failed.

    =>  mysqli_query()-  mysqli_query() what it returns. The return value could be a boolean(true/false)

    =>  mysqli_close() - The close() / mysqli_close() function closes a previously opened database connection.


    Simply run in your favourite browser by xampp server



    Disclaimer

     

    All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.

     

  • WHAT WE DO

    We've been developing corporate tailored services for clients for 30 years.

    CONTACT US

    For enquiries you can contact us in several different ways. Contact details are below.

    Hacking Truth.in

    • Street :Road Street 00
    • Person :Person
    • Phone :+045 123 755 755
    • Country :POLAND
    • Email :contact@heaven.com

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.