Skip to main content

Posts

Showing posts from September, 2021

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.