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