$rs=@mysql_fetch_array($result);
while($rs){
        改作
while($rs=@mysql_fetch_array($result)){
        

解决方案 »

  1.   

    里面的记录应该用
    $rs['name']...
    这样来取出显示
      

  2.   

    试试
    $name      改为 $rs['name']
    $email     改为 $rs['email']
    $$company  改为 $rs['company']
    $content   改为 $rs['content']
      

  3.   

    你应该这么写
    echo "abc".$rs['name']."ddd".$rs['email'];
      

  4.   

    就是echo "姓名".$rs['name']."邮件".$rs['email'];这样的意思吧?既然你是mysql_fetch_array($result)了,你就应该用$rs['name']来读取阿
      

  5.   

    其实,我觉得,首要的是建议楼主今后贴代码的时候把用户名密码地方隐掉---C:\>cd mysql\binC:\mysql\bin>mysql -h 61.185.204.21 -u root -p
    Enter password: *******
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 9838 to server version: 3.23.52-ntType 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> show databases;
    +----------+
    | Database |
    +----------+
    | company  |
    | lyb      |
    | mysql    |
    | test     |
    +----------+
    4 rows in set (0.08 sec)mysql> use company
    Database changed
    mysql> show tables;
    +-------------------+
    | Tables_in_company |
    +-------------------+
    | khfk              |
    | zxdd              |
    +-------------------+
    2 rows in set (0.08 sec)mysql>
      

  6.   

    就是这
    $db=@mysql_connect('61.185.204.21','root','ahuasky')
    暴露了你数据库的地址,用户名,密码今后贴代码的时候把用户名密码地方隐掉