Home >Backend Development >PHP Tutorial >php mysql delete data record deletion_PHP tutorial

php mysql delete data record deletion_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:05:45793browse


When you click to delete the connection during operation, the ID of the current entry will be obtained, and then the program will obtain the current ID to perform the deletion operation.

         include("conn.php");
                         
$query = "select * from new order by id desc";
         $res = mysql tutorial_query($query);
                                                                                                                                                                                      ?>


                                                                                       
        
Title:[Delete][Modify]

                                                                                        }
? ?>

Author:


Title:


Content:
         



del.php code

          $del = "delect from test where id in ($tid)";

        $res = mysql_query($del);

         if($res){
echo "Delete successfully";
        }else{
echo "Deletion failed";
}
?>


http://www.bkjia.com/PHPjc/630767.html

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/630767.htmlTechArticleWhen you click the delete connection during operation, the id of the current entry will be obtained, and then the program will obtain the current id for deletion operation. . ?php tutorial include(conn.php); $query = select * from new order b...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn