我大概看了一下,下面这句话有问题,
$recordest=mysql_query("update connects set connect='$count' where username='$id';");
应该改为
$recordest=mysql_query("update connects set connect='$count' where username='$id'",$db);
还有错误的话法上来
$recordest=mysql_query("update connects set connect='$count' where username='$id';");
应该改为
$recordest=mysql_query("update connects set connect='$count' where username='$id'",$db);
还有错误的话法上来
http://127.0.0.1/test.php?id=ppp浏览器可以给出正确的页面,可是我把这句话嵌入网页中就对我说网页有错误。
我是这样写的,请指教。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META name="GENERATOR" content="IBM HomePage Builder 2001 V5.0.0 for Windows">
<TITLE></TITLE>
</HEAD>
<BODY><SCRIPT src="http://127.0.0.1/test.php?id=ppp"></SCRIPT></BODY>
</HTML>
<head>
<title>- Hinic.net</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<meta HTTP-equiv="refresh" content="0.1;url=http://127.0.0.1/test.php?id=ppp">
</head><body bgcolor="#FFFFFF" text="#000000"></body>
</html>
试试
echo 'document.write("';你要输出的部分echo '")';