Home Backend Development PHP Tutorial 读取txt文件写入库数据库,内容带单引号的写入失败,请教如何转义

读取txt文件写入库数据库,内容带单引号的写入失败,请教如何转义

Jun 13, 2016 am 10:52 AM
txt

读取txt文件写入库数据库,内容带单引号的写入失败,请问怎么转义
读取txt文件写入库数据库,内容带单引号的写入失败,请问怎么转义

------解决方案--------------------
addslashes

Statement of this Website
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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is Intel TXT? What is Intel TXT? Jun 11, 2023 pm 06:57 PM

What is Intel TXT?

How to convert chm to txt How to convert chm to txt Oct 17, 2023 pm 02:42 PM

How to convert chm to txt

How to convert html to txt How to convert html to txt Aug 31, 2023 am 09:23 AM

How to convert html to txt

FAQ for pandas reading txt files FAQ for pandas reading txt files Jan 19, 2024 am 09:19 AM

FAQ for pandas reading txt files

How to convert chm to txt How to convert chm to txt Oct 31, 2023 am 09:35 AM

How to convert chm to txt

Is txt a word document? Is txt a word document? Aug 26, 2022 pm 04:59 PM

Is txt a word document?

Win7txt suffix change tutorial Win7txt suffix change tutorial Jan 06, 2024 pm 07:45 PM

Win7txt suffix change tutorial

Stream Editor (SED): Basics Stream Editor (SED): Basics Mar 20, 2024 pm 03:11 PM

Stream Editor (SED): Basics

See all articles