PHP submits data to MySQL with data errors

$sql = "INSERT into Ecs_goods (Cat_id,goods_sn,goods_name,goods_name_style,goods_number,market_price,shop_price, Warn_number,goods_desc,is_real,is_on_sale,is_alone_sale,add_time,sort_order,is_new,give_integral,rank_integral , Goods_type) VALUES (' ".

How do you write this? Master, help me.

Reply to discussion (solution) $str = "[Size=18px]123[size=16px]456[/size]789[/size]";Preg_match_all (' #\[size=[^\[\]]+\] (?: [^\[\]]+| ( (? R))) *\[/size\]# ', $str, $matchs);Print_r ($MATCHS); $str = "[Size=18px]123[size=16px]456[/size]

PHP get method to pass the Chinese parameter, PHP cannot receive

http://127.0.0.1/index.php?admin&q=module/user/list&site_id=50&a=userinfo&realname=%D2%FC%BD% A8%c0%a4 LINUX server, $data [' realname ']=$_get[' realname '], the method can not get realname parameters, local testing no problem, please God explain!

How to achieve the insertion of background music in the Web page, jump page without interruption!

Title, Trouble understand the big God I, most of the internet is said to do with frame, but the specific situation is now can't use frame frame! Is there any other way? Reply to discussion (solution) Why can't I use frame, browser not

Ajax return Processing

$.get ("pai.php", {bbid:bbid,pid:pid,},function (data) { Alert ("A:" +data); Alert ("B:" +data.status); }, "JSON"); Return value: {"status": 1, "info": "\u7ed3\u675f", "data": [{"Wjc_title": "2\u53a2\u5c0f\u8f7f\u8f66"},{"Wjc_title": "3\u53a2\ U5c0f\

Want to do real-time communication

Web sites and app interconnects (Android and iOS) are available on the website in a timely manner. The specific use of what technology to achieve better, to seek the experience of the great God pointing. Reply to discussion (solution) PHP

PHP is a magical place

$arr = Array (' guangdong ' = = Array ( ' Guangzhou ', ' Shenzhen ', ' ), ' fujian ' = = Array ( ' Fuzhou ', ' Xiamen ', ' ), ' jiangsu ' = Array ( ' Suzhou ', ' Shanghai ', ), ' shandong ' = = Array ( '

My thinkphp project: Submenu_config = {$menu} with syntax error

\manager\tpl\home\index\main.html submenu_config = {$menu}, 111th line has syntax error A long time useless php, unfamiliar. May I ask you ggjjddmm, What does {$menu} mean in the above template code? $menu does not appear in the context of this

CentOS 7 min Compile and install php5.6+nginx1.7.5 notes

CentOS 7 min Compile and install php5.6+nginx1.7.5 notes 1, install MySQL please refer to centos 7 min compile and install mysql5.6.20 notes 2. Compile and install php5.6+nginx1.7.5 2.1, Installation php5.6.0 Add dependent Apps FirstYum

Why do you write a regular?

To match a lot like $trade[subject] The string, People say it should be written like this: href= "[^"]* " But I am I understand that it is right to write href=[^ "]*" My understanding is: The first must be "start, so use [^"] this regular, if

thinkphp Screening Problems

How to make a double-sun selection based on these 2 fields ~ ~ Reply to discussion (solution) Make a sofa static wait master elder brother's answer ~ ~ $Model->where ($condition)->select ();$condition write the same as usual SQL, you can

Session cannot be delivered, files can be saved, MySQL is saved but cannot be delivered

Save the verification code in the session, when using files to save the session, the user registration can be in the background $_session[' captcha '] read this verification code, that is, can be normal delivery, but instead of using MySQL to save

MySQL gets the latest data from the associated table

The latest data can be obtained, but I want to get the data under the latest storage time of the associated table B, and return the data of the associated table A at the current time of the latest storage according to the latest inbound time, no

PHP Operation MongoDB Database Detailed example introduction (increase, delete, change, check) (vi)

PHP Operation MongoDB: PHP needs to play modules to manipulate MongoDB Official website can be downloaded: Http://pecl.php.net/package/mongo download MongoDB is set to user-authorized startup mode The PHP manual does not have the user

thinkphp How to write the update cache feature

There's a button in the background to update the cache click on all users (including first visited and previously visited users) to reload the page code Reply to discussion (solution) The simplest way to do this is to delete all caches,

PHP Downloads A problem that is encountered when generating the required file type (relatively large).

At the beginning of each discovery, and later found more data, PHP script will be executed for a long time. I simply took all the data and then judged it to match the search criteria, which is really cumbersome, but because the conditions are

Solving the problem of verification code

question: How can I store the verification code in the image for later verification? verficode.php page Ob_clean (); for ($i =0; $i $num. =dechex (rand (0,15)); } $num =substr ($num, -4,4); $nowimage =imagecreate (100,30); Imagecolorallocate ($

CI framework, video upload issues

New Learning CI framework, many are not clear, recently do a file upload function, encountered some difficulties $ID is the ID number of this article, meaning that each folder can only hold 50 video public Function Addmove ($id) {$uid =

thinkphp text filter fields are in a table

Program code Public Function Index () {$Data = M (' Zhaopin ');//Instantiate Data data Object import (' ORG. Util.page ');//Import Paging class $count= $Data->where ($map)->count ();//query satisfies the required total number of records $page= new

PHP Judgment Array problem

I would like to show in the foreach () loop only a large column without subordinates (for example, only show the code in the Big column one, Big column four), there are lower columns do not show, how to judge? cid= column id,name= column name,

Total Pages: 5208 1 .... 3860 3861 3862 3863 3864 .... 5208 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.