MySQL Insert Select inPHP The insertion and selection queries in MySQL are used to deal with database using PHP. NOTE : Edit Connection.php file by entering the valid details.