Skip to main content

Posts

SQL Syntax #2

SQL is a standard language for accessing and manipulating databases.  Today we will learn the Basic SQL syntax. And this is our second video on the SQL programing language. File: SQL Syntax PDF FaceBook:  https://www.facebook.com/BitByte2021
Recent posts

SQL Introduction #1

SQL is a standard language for accessing and manipulating databases. File: https://docs.google.com/presentation/d/149p2IViqP8XdJgaZCPuCw5CpBJoCJrwb/edit?usp=sharing&ouid=113683662411038075179&rtpof=true&sd=true FaceBook:https://www.facebook.com/BitByte2021

How to use mysqli_close() if SQL query being executed in a function and function called on some other page ?

  <?php   //DB connection // new mysqli(host, user, password, database name); $ DBConnection = mysqli_connect ( " localhost:3308 " , " bit " , " bitbyte " , " bit_yt " ); //Check connection if ( mysqli_connect_errno ()){     echo " Failed to connect to MySQL: ". mysqli_connect_error ();     exit (); } function testFunction1 (){   global $ DBConnection ;   $ sql = mysqli_query ($ DBConnection , " SELECT * FROM students " );   print_r ( mysqli_fetch_all ($ sql , MYSQLI_ASSOC ));   mysqli_close ($ DBConnection ); } function testFunction2 ( $ DBConnection ){   $ sql = mysqli_query ($ DBConnection , " SELECT * FROM students " );   print_r ( mysqli_fetch_all ($ sql , MYSQLI_ASSOC ));   mysqli_close ($ DBConnection ); } testFunction1 (); //use any of one testFunction2 ( $ DBConnection );

PHP MySQL close function, mysqli_close, close, MySQLi

Hello guy, today we will learn the close function and it is a function of PHP mysqli. And it does close a previously opened database connection. Here have two types of close functions: 1. Called close() function that is used in the Object-Oriented type of query. 2. Called mysqli_close() function that is used in the Procedural type of query. The close() / mysqli_close() function closes a previously opened database connection. connection: Required. Specifies the MySQL connection to close Return Value: TRUE on success. FALSE on failure PHP Version: 5+ <! DOCTYPE html > < html >     < head >         < title > Object Oriented style </ title >         < style >             body { font-size : xx-large ; }         </ style >     </ head >     < body >         < h3 > Object Oriented style ...

Pokémon Unite charizard - pokemon gameplay - #2

Pokémon Unite is a free-to-play, multiplayer online battle arena video game developed by TiMi Studio Group and published by The Pokémon Company for Android and iOS and by Nintendo for the Nintendo Switch. It was announced in a Pokémon Presents presentation on 24 June 2020.

Pokémon Unite - pokemon gameplay - #1

Pokémon Unite is a free-to-play, multiplayer online battle arena video game developed by TiMi Studio Group and published by The Pokémon Company for Android and iOS and by Nintendo for the Nintendo Switch. It was announced in a Pokémon Presents presentation on 24 June 2020.

Database Engine - InnoDB and MEMORY - changing MySQL database engine - localhost - PHPMyAdmin

Hello guy, today we will learn how to change the database engine in the table. This video basically changing MySQL database engine InnoDB to MEMORY. Topic: 1) How to get all database engines? 2) How to get current using a database engine? 3) How to change the database engine in the particular table? INFORMATION_SCHEMA that provides access to database metadata, information about the MySQL server such as the name of a database or table, the data type of a column, or access privileges. A storage engine is a software module that a database management system uses to create, read, update data from a database. ... There are two types of storage engines in MySQL: transactional and non-transactional. For MySQL 5.5 and later, the default storage engine is InnoDB To change the database engine of a MySQL database table, go to your phpMyAdmin available in Site Tools. ... ALTER TABLE my_table ENGINE = InnoDB; If the query is executed properly, the database engine of the table will be changed to ...

How to draw circle, rectangle and triangle by canvas in Android?

Hi... friends, welcome to Bit Byte. This video is How to draw circles, rectangles, and triangles by canvas on Android? The Android Canvas provides convenient methods for drawing simple shapes such as circles and rectangles, using drawCircle and drawRect respectively, but beyond these, the majority of shapes require some custom Path logic to draw. Three shapes that I was required to draw were circle, rectangle, and triangle, so I thought I’d share how I accomplished this. And hard copy code is below this link. GitHub - https://github.com/giriArun/AndroidCanvasT1.git

PHP MySQL Affected Rows | affected_rows | mysqli_affected_rows | Object Oriented | Procedure

Hello guy, today we will learn the affected rows function and it is a function of PHP MySQL. It returns a number of rows that are affected by our query. The affected_rows / mysqli_affected_rows() function returns the number of affected rows in the previous SELECT, INSERT, UPDATE, REPLACE, or DELETE query. Return Value: The number of rows affected. -1 indicates that the query returned an error. PHP Version: 5+ <?php //DB connection include("DB_connection.php"); //::::Object Oriented style:::: $connect -> query("SELECT * FROM students"); //similar use /*query("INSERT INTO students (column names) value ( values)); OR update, delete query */ $affectedRows = $connect -> affected_rows; //output echo "Affected Rows:".$affectedRows; //close connection $connect -> close(); //::::Procedural style:::: mysqli_query($connect, "SELECT * FROM students"); echo "Affected rows: " . mysqli_affected_rows($connect); //close connection mys...

COC War Attack | Clash of Clan War Attack With Minimum Troops | TH12 | Town Hall 12 | 3 Star

Hello guys, use your minimum troops' type to win the war. Simple war strategy with town hall 12 and earn 3 stars. And it's useful in every war base to destroy 80 to 100 percent. Clash of clans town hall 12 war attack. . . . Clash of Clans is a freemium mobile strategy video game developed and published by Finnish game developer Supercell.