你修改c:/winnt下面的my.ini了吗??把里面的路径改成你当前的试试看

解决方案 »

  1.   


    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <link href="css.css" rel="stylesheet" type="text/css">
    <body bgcolor="#F2F6E8" leftmargin="0" topmargin="0">
    <?
    $database_link =mysql_connect("localhost","root","");
    mysql_select_db("fin230",$database_link);
    $query = "select * from thread order by replycount desc";
    $result =mysql_query($query,$database_link);
    $i=1;
    ?>
    <table width="1009" border="0" cellspacing="0" cellpadding="2" onMouseOver="this.style.cursor='hand'">
      <?
      while($row =mysql_fetch_row($result))
    {


    if($i<=7){
    ?>
      <tr onMouseOver="this.style.backgroundColor='#DAEBB5'" onMouseOut="this.style.backgroundColor=''">
         <?
     print "<a href=http://campus.stu.edu.cn/forum/showthread.php?threadid=".$row[0]." target=_blank><td width=1003 onMouseOver=\"this.style.backgroundColor=''\" onMouseOut=\"this.style.backgroundColor=''\">"; 
         
    print " :: <font color='#FF6600'>".$row[1]."</font>";

        print "</a></td>";
    ?>
      </tr>
    <?
    $i++;
    }
    }
    mysql_close($database_link);

    ?>
    <table width="1009" border="0" cellspacing="0" cellpadding="2" onMouseOver="this.style.cursor='hand'">
      <?
      while($row =mysql_fetch_row($result))
    {
    $count=$row[6];
    $title=$row[7];
    $pos=strrpos($title,"[/QUOTE]");
    if($pos!=0){
    $title=substr($title,$pos+8,(strlen($title)-1));
    }
    if(strlen($title)>=70){
    $title=substr($title,0,70).".....";
    }
    if($row[6]!=0){
    $img="[包含图片]";
    }else{
    $img="";
    }
    if($i<=4){
    ?>
      <tr onMouseOver="this.style.backgroundColor='#DAEBB5'" onMouseOut="this.style.backgroundColor=''">
         <?
     print "<a href=http://campus.stu.edu.cn/forum/showthread.php?postid=".$row[0]."#post".$row[0]." target=_blank><td width=1003 onMouseOver=\"this.style.backgroundColor=''\" onMouseOut=\"this.style.backgroundColor=''\">"; 
         
    print " :: <font color='#FF6600'>".$title."</font>".$img."<font color='#040404'>(此主题被回复:".$count.")</font>";

        print "</a></td>";
    ?>
      </tr>
    <?
    $i++;
    //}
    }
    }
    mysql_close($database_link);

    ?>
      <tr onMouseOver="this.style.backgroundColor='#DAEBB5'" onMouseOut="this.style.backgroundColor=''">
        <a href="http://campus.stu.edu.cn/forum" target="_blank" ><td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;更多...</td></a>
      </tr>
    </table>
    </table>
    这是php代码,这个页面功能是提取论坛里的几条更新数据my.ini我看了,没有问题
      

  2.   

    你给mysql指定了一个并不存在的语言类型
      

  3.   

    你给mysql指定了一个并不存在的语言类型请问怎么修改?修改php程序还是mysql???
      

  4.   

    大概是my.ini的问题,MySQL默认安装一般没有什么事情,更改路径后有不少问题
      

  5.   

    mysql不大会失手啊,还是卸载重装一下吧
      

  6.   

    把php.ini的desplay_err=Off看看行不行
      

  7.   

    我也认为是my.ini的问题,是更改了默认路径以后产生的问题,你先卸载,并且删除my.ini,然后从新安装吧。或者安装到默认路径下。
      

  8.   

    my.ini的问题,主要是路径问题
      

  9.   

    my.ini设置,我是安装在d盘mysql目录下
    #This File was made using the WinMySQLAdmin 1.4 Tool
    #2003-3-30 13:53:56#Uncomment or Add only the keys that you know how works.
    #Read the MySQL Manual for instructions[mysqld]
    basedir=D:/Mysql
    #bind-address=127.0.0.1
    datadir=D:/Mysql/data
    default-character-set=gb2312
    #language=D:/Mysql/share/your language directory
    #slow query log#=
    #tmpdir#=
    #port=3306
    #set-variable=key_buffer=16M
    [WinMySQLadmin]
    Server=D:/Mysql/bin/mysqld-opt.exe
    user=
    password=
      

  10.   

    文件 c:\mysql\share\charsets\gb2312.conf 存在吗?
      

  11.   

    D:\mysql\share\charsets\gb2312.conf 吧?看了不存在,是不是这里出错了?怎么解决,谢谢
      

  12.   

    将Mysql目录中的Data目录复制出来备份,重新安装Mysql,采取默认安装就可以了另外,Windows中运行Mysql,应该是运行mysql-nt.exe,你的My.ini中是:Server=D:/Mysql/bin/mysqld-opt.exe这个就错了,改为Mysql-nt.exe
      

  13.   

    这个是我的My.ini文件,参考下吧,我的正常
    #This File was made using the WinMySQLAdmin 1.3 Tool
    #2004-7-22 8:56:32#Uncomment or Add only the keys that you know how works.
    #Read the MySQL Manual for instructions[mysqld]
    basedir=G:/Mysql
    #bind-address=192.168.1.2
    datadir=G:/Mysql/data
    #language=G:/Mysql/share/your language directory
    #slow query log#=
    #tmpdir#=
    #port=3306
    #set-variable=key_buffer=16M
    [WinMySQLadmin]
    Server=G:/Mysql/bin/mysqld-nt.exe
    user=root
    password=