看看这个错误是怎么回事: Warning: Cannot modify header information - headers already sent by (output started at D:\wamp\www\dbconnect.php:13) in D:\wamp\www\reply.php on line 69这是69行: header("Location:display.php?mesid=$firstmesid");谁知道是怎么回事?
英语学的差就是麻烦,Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\wamp\www\show.php on line 41 是什么意思啊?41:while($info=mysql_fetch_array($result)){
echo "<script language='JavaScript'>alert 'ok';</script>";
?>
3.在mysql中好象没有自动编号类型——有相关选项,选择即可
是的,php变量区分大小写的
Warning: Cannot modify header information - headers already sent by (output started at D:\wamp\www\dbconnect.php:13) in D:\wamp\www\reply.php on line 69这是69行:
header("Location:display.php?mesid=$firstmesid");谁知道是怎么回事?
重起appache
这时因为在调用header("LOCATION:XXXX”)前有输出代码,比如echo“xxxx”等。
是什么意思啊?41:while($info=mysql_fetch_array($result)){
2.把整个数据库文件夹移动就可以了,比如你的数据库叫chat,直接复制这个文件夹
3.把ID设为主键,并且在默认属性中选中auto_increment就可以了
4.在PHP代码外写个JS函数,比如<?php
session_start();
$username=$_SESSION["unc"];
?><script>
function a()
{alert("提示框!");}
</script><html>
<title>实例</title>
<body onload=a()>
</body>
</html>
你的$result怎么写的,是连接数据库操作的那句有问题
比如
$query="select * from user";
$result=mysql_query($query);
$info=mysql_fetch_array($result);这就是对的
Warning: Attempt to assign property of non-object in D:\wamp\www\chkreg.php on line 31
是怎么回事?
$sql = "INSERT INTO user (u_name, u_pass, u_mail, u_tel) VALUES";$sql .= "('$username', '$pwd', '$email', '$tel')";
$rs = $db->query($sql);31: if ($rs->num_rows = 0) {
$errmsg = "登录成功!";
}