XML Parsing Error: no root element found

前端 未结 2 1124
我寻月下人不归
我寻月下人不归 2020-12-21 19:42

I am trying to search for all properties in a database that are in one suburb. I have read that it has something to do with the HTML code 204 but I still do not undertand wh

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-21 20:23

    The error was that the browser's compiler was "commenting out" all the php and adding empty HTML tags. It was then getting confused as there was an "empty" document.

    This was because the website (including JS, PHP and HTML files) were being stored and run from a local directory. For example:

    the URL read: file:///C:/xampp/htdocs/"Project Name"/Index.html

    the correct URL is: localhost/"Project Name"

    IF you are using XAMPP, the folder containing all your project files need to be placed in the htdocs folder in the xampp directory.

提交回复
热议问题