Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 4 in /var/www/html/bbs/f_post.php on line 30
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 4 in /var/www/html/bbs/f_post.php on line 31
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 4 in /var/www/html/bbs/f_post.php on line 32
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 4 in /var/www/html/bbs/f_post.php on line 33
程序运行,出现这种情况,解决不了,请大侠门帮帮忙!万分感谢!
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 4 in /var/www/html/bbs/f_post.php on line 31
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 4 in /var/www/html/bbs/f_post.php on line 32
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 4 in /var/www/html/bbs/f_post.php on line 33
程序运行,出现这种情况,解决不了,请大侠门帮帮忙!万分感谢!
请在php.ini里面在设置好吧
//在数据库的board表中查找所需要讨论区的所有信息,并将各字段给一系列变量。
$query="select * from board where id='$type'";
$result=mysql_db_query("forum",$query);
$fname=mysql_result($result,0,"name");
$fadmin=mysql_result($result,0,"admin");
$fadmin2=mysql_result($result,0,"admin2");
$fadmin3=mysql_result($result,0,"admin3");
//从数据库的article表中查找属于本讨论区的所有文章id,从而得出本论坛的文章数
$sql="select id from article where type='$type'";
$result=mysql_db_query("forum",$sql);
$fnum=mysql_num_rows($result);
if ($offset=="")
{
$offset=$fnum-20;
if($offset>0)
{
$offset=0;
}
}
//首先判断是否已经登录,如果登录论坛,判断权限。
if ($user_cookie !="")
{
$cookie=1;
if ($user_cookie==$fadmin)
{
$f_admin=1;
}
if ($user_cookie==$fadmin2)
{
$f_admin=1;
}
if ($user_cookie==$fadmin3)
{
$f_admin=1;
}
}
?>
就说这一段有错误的啊.........
{
$fname=mysql_result($result,0,"name");
$fadmin=mysql_result($result,0,"admin");
$fadmin2=mysql_result($result,0,"admin2");
$fadmin3=mysql_result($result,0,"admin3");
}