本人是初学者,遇到一个警告解决不了
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in X:XXXXXXXX\list.php on line 10
不知道是什么原因调试不好,求助~~~~
这是源文件:<?php
include("conn.php");
?>
<table width=500 border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#add3ef">
<?
$sql="select ^ from message";
$query=mysql_query($sql);
while($row=mysql_fetch_array($query)){
?>
<tr bgcolor="#eff3ff">
<td>标题:<?=$row[tittle]?> 用户:<?=$row[user]?> </td>
</tr>
<tr bgColor="#ffffff">
<td>内容:<?=$row[content]?> </td>
</tr>
<?
}
?>
</table>
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in X:XXXXXXXX\list.php on line 10
不知道是什么原因调试不好,求助~~~~
这是源文件:<?php
include("conn.php");
?>
<table width=500 border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#add3ef">
<?
$sql="select ^ from message";
$query=mysql_query($sql);
while($row=mysql_fetch_array($query)){
?>
<tr bgcolor="#eff3ff">
<td>标题:<?=$row[tittle]?> 用户:<?=$row[user]?> </td>
</tr>
<tr bgColor="#ffffff">
<td>内容:<?=$row[content]?> </td>
</tr>
<?
}
?>
</table>
改:$sql="select * from `message`"; 其中``是ESC键下面的那个键 ,这个要有.