由于phpMyAdmin中的JavaScript错误,我无法通过PHP向MySQL添加数据
我有一个英语-土耳其语词典网站。当搜索表中不存在的单词时,php函数将查找其含义并将其添加到表中。但对于某些单词,由于错误,无法将其含义添加到表中。起初,phpMyAdmin警告我,每次搜索“apple”这个词时,max_input_var应该超过1000。我已将其更改为3000,它不再警告我最大输入变量。但不知何故,由于JavaScript错误,它仍然无法将一些单词及其含义添加到表中 例如,当搜索单词“apple”时,无法将其添加到表中,并且phpMyAdmin遇到错误。还有其他一些词也不能添加到数据库中,“苹果”只是其中之一 Ps.49371个单词通过相同的查询和函数添加到表中。phpMyAdmin版本信息:4.4.15.2 Javascript错误报告在这里由于phpMyAdmin中的JavaScript错误,我无法通过PHP向MySQL添加数据,javascript,php,mysql,database,phpmyadmin,Javascript,Php,Mysql,Database,Phpmyadmin,我有一个英语-土耳其语词典网站。当搜索表中不存在的单词时,php函数将查找其含义并将其添加到表中。但对于某些单词,由于错误,无法将其含义添加到表中。起初,phpMyAdmin警告我,每次搜索“apple”这个词时,max_input_var应该超过1000。我已将其更改为3000,它不再警告我最大输入变量。但不知何故,由于JavaScript错误,它仍然无法将一些单词及其含义添加到表中 例如,当搜索单词“apple”时,无法将其添加到表中,并且phpMyAdmin遇到错误。还有其他一些词也不能添
{
"pma_version": "4.4.15.2",
"browser_name": "CHROME",
"browser_version": "49.0.2623.87",
"user_os": "Win",
"server_software": "Apache/2.2.15 (CentOS)",
"user_agent_string": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36",
"locale": "en",
"configuration_storage": "enabled",
"php_version": "5.4.45",
"exception_type": "js",
"exception": {
"mode": "stack",
"name": "TypeError",
"message": "Cannot read property '0' of null",
"stack": [
{
"line": 235,
"func": "",
"context": [
" lastException = null;",
" notifyHandlers.apply(null, [stack, null].concat(args));",
" }",
" }, (stack.incomplete ? 2000 : 0));",
"",
" throw ex; // re-throw to propagate to the top level (and cause wind//...",
" }",
"",
" report.subscribe = subscribe;",
" report.unsubscribe = unsubscribe;",
" return report;"
],
"column": "",
"filename": "tracekit/tracekit.js"
},
{
"func": "getFieldValidators",
"line": 302,
"column": "40",
"context": [
" * @return array of [function, parameters to be passed to function]",
" */",
"function getFieldValidators(field_id, onKeyUpOnly)",
"{",
" // look for field bound validator",
" var name = field_id.match(/[^-]+$/)[0];",
" if (typeof validators._field[name] != 'undefined') {",
" return [[validators._field[name], null]];",
" }",
"",
" // look for registered validators"
],
"filename": "config.js"
},
{
"func": "validate_field",
"line": 418,
"column": "21",
"context": [
"{",
" var args, result;",
" var $field = $(field);",
" var field_id = $field.attr('id');",
" errors[field_id] = [];",
" var functions = getFieldValidators(field_id, isKeyUp);",
" for (var i = 0; i < functions.length; i++) {",
" if (typeof functions[i][1] !== 'undefined' && functions[i][1] !== n//...",
" args = functions[i][1].slice(0);",
" } else {",
" args = [];"
],
"filename": "config.js"
},
{
"func": "HTMLDocument.<anonymous>",
"line": 511,
"column": "13",
"context": [
" var $check_page_refresh = $('#check_page_refresh');",
" if ($check_page_refresh.length === 0 || $check_page_refresh.val() == '1') {",
" // run all field validators",
" var errors = {};",
" for (var i = 0; i < $elements.length; i++) {",
" validate_field($elements[i], false, errors);",
" }",
" // run all fieldset validators",
" $('fieldset').each(function () {",
" validate_fieldset(this, false, errors);",
" });"
],
"filename": "config.js"
},
{
"func": "HTMLDocument.new_func",
"line": 279,
"column": "33",
"context": [
" */",
" wrap_function: function (func) {",
" if (!func.wrapped) {",
" var new_func = function () {",
" try {",
" return func.apply(this, arguments);",
" } catch (x) {",
" TraceKit.report(x);",
" }",
" };",
" new_func.wrapped = true;"
],
"filename": "error_report.js"
},
{
"func": "HTMLDocument.m.event.dispatch",
"line": 3,
"column": "8436",
"context": [
"/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
"!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
"if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
"},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
";",
"",
"function sprintf() {",
"/*"
],
"filename": "jquery/jquery-1.11.1.min.js"
},
{
"func": "HTMLDocument.$event.dispatch",
"line": 374,
"column": "19",
"context": [
"$event.dispatch = function( event ){",
"\tif ( $.data( this, \"suppress.\"+ event.type ) - new Date().getTime() > 0 ){",
"\t\t$.removeData( this, \"suppress.\"+ event.type );",
"\t\treturn;",
"\t}",
"\treturn $dispatch.apply( this, arguments );",
"};",
"",
"// event fix hooks for touch events...",
"var touchHooks = ",
"$event.fixHooks.touchstart = "
],
"filename": "jquery/jquery.event.drag-2.2.js"
},
{
"func": "HTMLDocument.r.handle",
"line": 3,
"column": "5139",
"context": [
"/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
"!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
"if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
"},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
";",
"",
"function sprintf() {",
"/*"
],
"filename": "jquery/jquery-1.11.1.min.js"
},
{
"func": "Object.m.event.trigger",
"line": 3,
"column": "7537",
"context": [
"/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
"!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
"if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
"},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
";",
"",
"function sprintf() {",
"/*"
],
"filename": "jquery/jquery-1.11.1.min.js"
},
{
"func": "HTMLDocument.<anonymous>",
"line": 3,
"column": "15404",
"context": [
"/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
"!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
"if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
"},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
";",
"",
"function sprintf() {",
"/*"
],
"filename": "jquery/jquery-1.11.1.min.js"
},
{
"func": "Function.m.extend.each",
"line": 2,
"column": "2973",
"context": [
"/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
"!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
"if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
"},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
";",
"",
"function sprintf() {"
],
"filename": "jquery/jquery-1.11.1.min.js"
}
],
"useragent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36",
"incomplete": "false",
"partial": "true",
"uri": "sql.php?target="
},
"script_name": "sql.php",
"microhistory": {
"current_index": "0"
}
{
“pma_版本”:“4.4.15.2”,
“浏览器名称”:“CHROME”,
“浏览器版本”:“49.0.2623.87”,
“用户操作系统”:“赢”,
“服务器软件”:“Apache/2.2.15(CentOS)”,
“用户代理字符串”:“Mozilla/5.0(Windows NT 10.0;WOW64)AppleWebKit/537.36(KHTML,如Gecko)Chrome/49.0.2623.87 Safari/537.36”,
“locale”:“en”,
“配置存储”:“已启用”,
“php_版本”:“5.4.45”,
“异常类型”:“js”,
“例外情况”:{
“模式”:“堆栈”,
“名称”:“类型错误”,
“消息”:“无法读取null的属性“0”,
“堆栈”:[
{
“行”:235,
“func”:“,
“背景”:[
“lastException=null;”,
notifyHandlers.apply(null[stack,null].concat(args));“,
" }",
“},(stack.complete?2000:0));”,
"",
“throw ex;//重新抛出以传播到顶层(并导致风//……”,
" }",
"",
“report.subscribe=subscribe;”,
“report.unsubscribe=取消订阅;”,
“返回报告;”
],
“列”:“,
“文件名”:“tracekit/tracekit.js”
},
{
“func”:“getFieldValidators”,
“行”:302,
“列”:“40”,
“背景”:[
“*@返回[函数,要传递给函数的参数]的数组”,
" */",
“函数getFieldValidators(字段id,onKeyUpOnly)”,
"{",
“//查找字段绑定验证程序”,
“var name=field_id.match(/[^-]+$/)[0];”,
“如果(验证器类型._字段[名称]!='未定义'){”,
“返回[[validators._字段[name],null]];”,
" }",
"",
“//查找已注册的验证程序”
],
“文件名”:“config.js”
},
{
“func”:“验证字段”,
“行”:418,
“列”:“21”,
“背景”:[
"{",
变量args,结果;“,
“var$field=$(field);”,
“var field_id=$field.attr('id');”,
“错误[field_id]=[];”,
“var functions=getFieldValidators(field_id,isKeyUp);”,
“对于(var i=0;i