URL rewrite with .htaccess make duplicate mysql entries

后端 未结 2 1810
盖世英雄少女心
盖世英雄少女心 2020-12-19 13:22

If rewrite url with .htaccess, all INSERT query with php is performed twice (unwanted duplication)

My .htaccess:



        
2条回答
  •  失恋的感觉
    2020-12-19 13:32

    Additionally you can set a primary or unique key in your SQL table (for example, 'title'). That alone would prevent any duplicate entries.

提交回复
热议问题