Xmlhttp.responsexml is null

Source: Internet
Author: User

Reply to discussion (solution)

What format do you fix in Ajax?





Untitled Document



Header ("content-type:text/html;charset= ' GBK '");
$id =$_get["Key"];
$link =mysql_connect ("localhost", "root", "");
mysql_select_db ("Enterprise");
mysql_query ("Set names ' GBK '");
$sql = "SELECT * from Etp_news where id=". $id;
$result =mysql_query ($sql);
while ($rs = Mysql_fetch_object ($result)) {

$tit = $rs->tit;
$cont = $rs->content;
$name = $rs->source;
?>







How do you just look at the back part of the content? The first half is PHP error message, why blind?
Can the two parts fit together to be considered XML?




Ask for advice

The error message clearly tells you that the variable $content at line 18th does not exist sel_news.php
What's the use of light embrace if you don't change the error message by mistake?



Do not add $ctent. Show only one bar
It's wrong to add, I can't find ctent, I need to show him the loop.

Thank the moderator to remind the question OK

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.