PHP/mysql 忽略具有 Asterix 字符的记录 [英] PHP/mysql ignores record which have Asterix character

查看:41
本文介绍了PHP/mysql 忽略具有 Asterix 字符的记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下代码将记录从一个 MySQl 表添加到另一个表中,它适用于所有公司名称,但带有 * 的公司名称除外,例如尝试添加 Customer_Bill_name=XXX CO., LLC* " 跳过添加到表中.我该如何处理这个问题?

I used the following code to add record into from one MySQl table to another it works for all Company Name except for the ones with * for example tried to add Customer_Bill_name=XXX CO., LLC* " skips adding in to the table. how can i handle this issue?

我使用了以下代码.请帮忙

I used the following code. Please help

'CUSTOMER' => htmlspecialchars($tmpArray['Customer_Bill_Name'], ENT_QUOTES),

谢谢!

推荐答案

尝试使用以下方法:

mysqli_real_escape_string($tmpArray['Customer_Bill_Name'])

它可能对你有帮助.

这篇关于PHP/mysql 忽略具有 Asterix 字符的记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆