Php 基本反向url中断jquery调用

Php 基本反向url中断jquery调用,php,jquery,html,Php,Jquery,Html,有问题,我猜是url或其他什么问题。我就是看不出是什么。我发布了jquery部分,也许我有什么地方出错了,或者已经过时了 它只是没有附加到php文件的实际链接中 url.127.0.0.1---[07/Jan/2016:20:54:19-0500]“发布 /projectBox/php/add_box.php HTTP/1.1“200 224 “”“Mozilla/5.0 (X11;Ubuntu;Linux x86_64;rv:43.0)Gecko/20100101 Firefox/43.0“

有问题,我猜是url或其他什么问题。我就是看不出是什么。我发布了jquery部分,也许我有什么地方出错了,或者已经过时了

它只是没有附加到php文件的实际链接中

url.127.0.0.1---[07/Jan/2016:20:54:19-0500]“发布 /projectBox/php/add_box.php HTTP/1.1“200 224 “”“Mozilla/5.0 (X11;Ubuntu;Linux x86_64;rv:43.0)Gecko/20100101 Firefox/43.0“

这是我的html标签

            <form name="frmAddProject">
            <div id="input_dialogue" class="hide">
                <h3>Add project Box</h3>
                <hgroup>
                    <label>Title</label>
                    <input id="txtBox" name="txtBox">

                </hgroup>
                <hgroup>

                    <label>Description</label>
                    <input id="txtDetail" name="txtDetail">

                </hgroup>

                <button id="addProject">
                    Add
                </button>

            </div>
        </form>
编辑第二个错误* 我还做了一个函数来获取不同的项目,我在JQuery中得到了一个500状态代码,但是当我从我得到的数据中警告.error时*现在不要,如果有任何帮助,它似乎给了我一些JQuery的东西,我看不懂

警报显示:

函数(){if(h){var c=h.length;!函数 g(b){n.each(b,函数(b,c){var d=n.type(c);“function”==d?a.unique&&k.has(c)| h.push(c):c&&c.length&&string!==d&&g(c)}}(参数),d?f=h.length:b&(e=c,j(b))}返回 这个}

有jquery部分:

        function loadProjects() 
    {

        $.ajax(
        {
            type: 'GET',
            dataType: 'json',
            url: './php/load_projects.php',
            success: function(data) 
            {
                alert(data);
            },
            error:function(data)
            {
                alert(data.error);
                console.log(data.status);
            }
        });
    }
加载\u projects.php部分

    include('./connect.php');

$sql = "SELECT pbo_title, pbo_description
            FROM pbo_projects ";

$result = $mysqli-­>query($sql); #line 8 says Use of undefined constant \xc2\xad - assumed '\xc2\xad' ## this is my access.log
$titles = array();

while ($row = $result->fetch_assoc()) 
{
    $titles[] = array('title' => $row['pbo_title'], 'description' => $row['pbo_description']);
}
echo json_encode($titles);
还有什么想法吗?

你可以试试:

$myBox = $_GET['txtBox'];
$myDetail = $_GET['txtDetail'];

噢,谢谢你!在把我所有的帖子都放到gets上之后,它开始工作了,然后解决了其他一些小问题,但一切正常。我会发回如果我有任何特殊问题,我不完全理解。。。它真的发布或获取。。。好的,再次感谢。保持联系,我会提交更多的代码到我的github当有足够的准备,所以你们可以有一个偷偷的,如果你们关心!这就像一个分类项目!;)再次感谢
    include('./connect.php');

$sql = "SELECT pbo_title, pbo_description
            FROM pbo_projects ";

$result = $mysqli-­>query($sql); #line 8 says Use of undefined constant \xc2\xad - assumed '\xc2\xad' ## this is my access.log
$titles = array();

while ($row = $result->fetch_assoc()) 
{
    $titles[] = array('title' => $row['pbo_title'], 'description' => $row['pbo_description']);
}
echo json_encode($titles);
$myBox = $_GET['txtBox'];
$myDetail = $_GET['txtDetail'];