Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 如何使用_Jquery_Url_Load - Fatal编程技术网

Jquery 如何使用

Jquery 如何使用,jquery,url,load,Jquery,Url,Load,我对jquery有问题。我在脚本中使用了include('somefile.php') 但是当我想从jquery加载这个somefile.php时,它不起作用 这里是我的php脚本 <tr> <td width="35%" valign="top"><?php include('inputform.php');?></td> <td width="64%" id="listTbl"><div id="List"&g

我对jquery有问题。我在脚本中使用了include('somefile.php')

但是当我想从jquery加载这个somefile.php时,它不起作用

这里是我的php脚本

<tr>
    <td width="35%" valign="top"><?php include('inputform.php');?></td>
    <td width="64%" id="listTbl"><div id="List"><?php include('somefile.php');?></div></td>
</tr>
此jquery脚本没有任何加载。一页空白。但我尝试了不同的方式,如下所示

$('#catListTbl').load("listcategory.php");
我也试过这个

$('#catListTbl').load("listcategory.php");
但上面的两个短脚本让我犯了错误。关于数据库的错误无法打开,找不到表,所有sql命令都将出现如下错误

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 2

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 2

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 3

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 5

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 5

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 6

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 8

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 8

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 9

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 11

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 11

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 12

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 14

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 14

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 15

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Webserver\Apache2\htdocs\Listing\somefile.php on line 44

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Webserver\Apache2\htdocs\Listing\somefile.php on line 44

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Webserver\Apache2\htdocs\Listing\somefile.php on line 45

请给我这个问题或任何解决方案的建议。Thank’s

从列表顶部开始,并修复此基本错误:“拒绝访问”表示您使用了错误的用户ID或密码,或两者都使用了。解决这个问题,再试一次。重复,直到没有错误为止。这是非常基本的东西。我在mysql中没有使用密码,如果我在没有jquery的情况下加载,一切都可以正常工作。我尝试的是在不加载整个页面的情况下重新加载这个“somefile.php”。
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 2

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 2

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 3

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 5

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 5

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 6

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 8

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 8

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 9

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 11

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 11

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 12

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 14

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 14

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\Webserver\Apache2\htdocs\Listing\includes\opentable.php on line 15

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Webserver\Apache2\htdocs\Listing\somefile.php on line 44

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Webserver\Apache2\htdocs\Listing\somefile.php on line 44

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Webserver\Apache2\htdocs\Listing\somefile.php on line 45