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 7 years, 2 months ago | 2710 views

Tags:- PHP PHP-MySQL

Send mail in PHP The mail() function allows you to send emails directly from a script. mail(to,subject,message,headers,parameters);   Description of parameters to Required. Specifies the receiver's email id subject Required. Specifies the subject of the …

Last updated 7 years, 2 months ago | 2705 views

Tags:- PHP

PHP | Sort an array of arrays by date in PHP Here a situation in which we have to sort an array of the array by date. An array of arrays is a multidimensional array in …

Last updated 7 years, 1 month ago | 2693 views

Tags:- PHP

List  List is a language construct and is similar to an array. It is used to assign a list of variables in one operation. If you are using PHP 5, then the list values start …

Last updated 7 years, 2 months ago | 2691 views

Tags:- PHP

PHP | Access specifiers An access specifier is a code element that is used to determine which part of the program is allowed to access a particular variable or other information.   There are three …

Last updated 7 years, 2 months ago | 2691 views

Tags:- PHP

By using following query we can find out the nth largest salary from employees table. SELECT salary FROM `employees` ORDER BY salary DESC LIMIT 1 OFFSET n-1 In the above query n is replaced by …

Last updated 7 years, 2 months ago | 2678 views

Tags:- SQL MySQL

SQL Update statement The UPDATE statement is used to update the records of an existing table in a database. We can update single as well as multiple columns using SQL update statement. The basic syntax …

Last updated 7 years, 4 months ago | 2675 views

Tags:- SQL MySQL

Cross-site scripting (XSS) Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications. XSS enables attackers to inject client-side script into web pages viewed by other users. A cross-site scripting …

Last updated 7 years, 2 months ago | 2675 views

Tags:- PHP CodeIgniter

MySQL | Repair Table REPAIR command is used for repair a MySQL table REPAIR TABLE users We can also specify Quick and Extended after the table name REPAIR TABLE users QUICK If we specify Quick then MySQL will …

Last updated 7 years, 9 months ago | 2663 views

Tags:- MySQL

Googlebot | What is a robots.txt file? A robots.txt is a simple text file that can be created by a notepad editor. This file is used for search engines, which provide instructions to search engines on how …

Last updated 7 years, 2 months ago | 2653 views

Tags:- robots_txt

PHP | magic function In PHP all functions start with __ names are magical functions. Magical functions always live in a PHP class. The definition of the magical function is defined by the programmer itself. …

Last updated 7 years, 2 months ago | 2653 views

Tags:- PHP

PHP | How to avoid errors in PHP? We can use PHP inbuilt function error_reporting(0) to avoid all errors in PHP file. <?php error_reporting(0); ?>  

Last updated 7 years, 2 months ago | 2637 views

Tags:- PHP

PHP | Check data type in php | gettype() | var_dump() By using gettype() function we can check the data type of a variable. we can also use var_dump() function for the same.   gettype() <?php echo …

Last updated 7 years, 2 months ago | 2635 views

Tags:- PHP

PHP | Syntax, and Tags PHP introduces a list of Tags to code PHP. PHP tags allow the PHP parsing engine to get in and get out from the PHP block. A PHP script can …

Last updated 6 years, 9 months ago | 2630 views

Tags:- PHP

Mysql | Trigger The trigger can be defined as a database object just like a stored procedure. It is a set of actions that fires automatically when an event occurs in a database.   Triggers …

Last updated 7 years, 2 months ago | 2623 views

Tags:- MySQL