Posts Tagged with 'PHP-MySQL'

Chart.JS | Draw Bar chart from server data using MySQL, Ajax, and PHP This example shows how to draw a bar chart with data from the database server.  FILE STRUCTURE At the end of this …

Last updated 1 year ago | 1093 views

Tags:- HTML JQuery JavaScript PHP Chart Ajax PHP-MySQL

SQL | IN operator with PHP Array In this article we will use PHP Array with SQL IN operator. SQL IN operator allows us to specify multiple values in where clause. So in this article …

Last updated 1 year, 7 months ago | 1038 views

Tags:- PHP PHP-MySQL

MySQL | Find last insert id in the table By using the MySQL function mysqli_insert_id() we can retrieve the last inserted id in the database table.   <?php $con = mysqli_connect("localhost","user_name","user_password","db_name"); if (mysqli_connect_errno()) { echo …

Last updated 1 year, 9 months ago | 262 views

Tags:- PHP PHP-MySQL

PHP-MySQL | Transaction with commit and rollback try { // First of all, let's begin a transaction $db->beginTransaction(); // A set of queries; if one fails, an exception should be thrown which we are handling at …

Last updated 2 years, 4 months ago | 49 views

Tags:- PHP PHP-MySQL