把sql语句放到mysql里执行看结果,如果正确执行,看你的读取语句。如果错误看你的sql语句。

解决方案 »

  1.   

    仅从数据库中取值,下面的语法对吗?还有别的语句吗可参考吗?
    $about=mysql_query("select Content from help where ID=86");
      

  2.   

    仅从数据库中取值,下面的语法对吗?还有别的语句吗可参考吗?
    $about=mysql_query("select Content from help where ID=86");
    echo $about; //没内容,也无出错提示
      

  3.   

    在PHP配置文件中有没有开启错误跟踪???
      

  4.   

    仅从数据库中取值,下面的语法对吗?还有别的语句吗可参考吗?
    $about=mysql_query("select Content from help where ID=86");
    echo $about; //没内容,也无出错提示
    --------------------
    当然没有内容了,这里的$about是resource类型的,不会显示出来
    要用$rs=mysql_fetch_array($about)来转化成数组才能用print_r打印出来。。
      

  5.   

    $about=mysql_query("select Content from help where ID=86");
    echo $about; //显示结果为:Resource id #7
    能否有什么简单的方式读$about[vel]当然用$rs=mysql_fetch_array($about)来转化成数组也可,对多个字段读取比较方便。
    这里仅仅读取一个字段中的一个数据?每次再调用$rs=mysql_fetch_array($about)是否??
      

  6.   

    $rs = mysql_result($about,0); //可以直接获得一个数据
      

  7.   

    $about=mysql_query(" select Content from help where ID = '86' ");
    应该这样写.
      

  8.   

    $dbcnx=@mysql_pconnect()
    ...$about=mysql_query("select Content from help where ID=86",$dbcnx);
      

  9.   

    $about=mysql_query(" select Content from help where ID = '86' ");$about_row = mysql_fetch_array($about);var_dump($about_row);//或者while($about_row = mysql_fetch_array($about))
    {
    echo $about_row['Content']
    }
      

  10.   

    应该还得加上mysql_fetch_array($about);
    eacho $about[0];