gpt4 book ai didi

php - 插入查询未执行,请帮助我跟踪问题

转载 作者:行者123 更新时间:2023-11-29 05:45:25 25 4
gpt4 key购买 nike

我尝试了下面的查询,但它没有执行给出错误:

> #1064 - You have an error in your SQL syntax; check the manual that
> corresponds to your MySQL server
> version for the right syntax to use
> near ')' at line 1

.

   INSERT INTO `jos_menu` SET params = 'orderby= show_noauth= show_title= link_titles= show_intro= show_section= link_section= show_category= link_category= show_author= show_create_date= show_modify_date= show_item_navigation= show_readmore= show_vote= show_icons= show_pdf_icon= show_print_icon= show_email_icon= show_hits= feed_summary= page_title= show_page_title=1 pageclass_sfx= menu_image=-1 secure=0 ', checked_out_time = '0000-00-00 00:00:00', ordering = '13', componentid = '20', published = '1', id = '152', menutype = 'accmenu', name = 'IPL', alias = 'ipl', link = 'index.php?option=com_content&view=archive', type = 'component')

然后我在包含变量的查询上使用了 mysql_real_escape_string(),它给我的查询如下:

INSERT INTO `jos_menu` SET params = \'orderby=\nshow_noauth=\nshow_title=\nlink_titles=\nshow_intro=\nshow_section=\nlink_section=\nshow_category=\nlink_category=\nshow_author=\nshow_create_date=\nshow_modify_date=\nshow_item_navigation=\nshow_readmore=\nshow_vote=\nshow_icons=\nshow_pdf_icon=\nshow_print_icon=\nshow_email_icon=\nshow_hits=\nfeed_summary=\npage_title=\nshow_page_title=1\npageclass_sfx=\nmenu_image=-1\nsecure=0\n\n\', checked_out_time = \'0000-00-00 00:00:00\', ordering = \'13\', componentid = \'20\', published = \'1\', id = \'152\', menutype = \'accmenu\', name = \'IPL\', alias = \'ipl\', link = \'index.php?option=com_content&view=archive\', type = \'component\')

在执行上面的查询时,我得到一个错误:

> #1064 - You have an error in your SQL syntax; check the manual that
> corresponds to your MySQL server
> version for the right syntax to use

> near
> '\'orderby=\nshow_noauth=\nshow_title=\nlink_titles=\nshow_intro=\nshow_section=\' at line 1

有人可以指导我跟踪其中的问题吗?

提前致谢....

最佳答案

您在查询末尾有一个不匹配 )

关于php - 插入查询未执行,请帮助我跟踪问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2742526/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com