Tag: database

  • User Authentication using REST API and JSON Web Tokens (JWT) – Step 1

    User Authentication using REST API and JSON Web Tokens (JWT) – Step 1

    Create a database · Either create the database manually or from the phpmyadmin with any name like restapi_db Create a table · Either create the table manually or from the phpmyadmin with any name like register in restapi_db database Create a directory for configuration Create the folder in XAMP/P ->htdocs with any name like rest-api-authentication Open this…

  • PHP connect to DB

    PHP connect to DB

    Example (MySQLi procedural) mysqli_connect function is used for connection string which has 3 parameters and mysqli_connect_error function is used to display particular MySQL error. <?php$servername = “localhost”;$username = “root”;$password = “”; // Create connection$conn = mysqli_connect($servername, $username, $password); // Check connectionif (!$conn) {  die(“Connection failed: ” . mysqli_connect_error());}echo “Connected successfully”;?> Example (MySQLi Object-Oriented) <?php$servername = “localhost”;$username…

  • What is Database?

    What is Database?

    Database is a collection of data store in one place; it is precise assortment of information. For Example: An online phone catalog utilizes a data set to store information of individuals, telephone numbers, and other contact subtleties. Your power specialist organization utilizes a data set to oversee charging, customer related issues, handle flaw information, and…

  • Database Languages

    A database is an efficient assortment of information for putting away and dealing with information. A data set motor can sort, change or serve the data on the data set. They uphold electronic capacity and control of information. Information bases make information the board simple. The actual data can be put away from multiple points…