你在filmsave.php 文件前加入
echo $filmname,
echo $filmtype,...
看能不能显示想关内容?

解决方案 »

  1.   

    最近是不是PHP都有着毛病啊我也是~可以读取、修改就是不能写入
      

  2.   

    搞定了.
    1.index.php不需要修改,没有错误2.filmsave.php
    <html> <head> 
    <title>显示列表</title> 
    </head> 
    <body> 
    <a href="filmview.php">影片列表</a> 
    <p> 
    <?php 
    $date=date("Y-m-d H:i:s");  //这里你原来错了,所以送不进数据库
    $link = mysql_pconnect("192.168.0.1","root","");
    mysql_select_db("vodsystem",$link); 
    $str = "INSERT INTO filmlist (filmname,filmtype,filmpath,inputdate,comment) VALUES ('$filmname','$filmtype','$filmpath','$date','$comment')"; 
    mysql_query ($str,$link); 
    ?> 
    </body> 
    </html> 3.filmview.php
    <html> <head> 
    <title>影片列表</title> 
    </head> 
    <table border="0" width="100%"> 
    <tr> 
    <td width="20%" align="center" bgcolor="#99ccff"> 
    <font color="#ffffff">影片名称</font> 
    </td> 
    <td width="10%" align="center" bgcolor="#99ccff"> 
    <font color="#ffffff">影片类型</font> 
    </td> 
    <td width="52%" align="center" bgcolor="#99ccff"> 
    <font color="#ffffff">影片简介</font> 
    </td> 
    <td width="18%" align="center" bgcolor="#99ccff"> 
    <font color="#ffffff">入库时间</font> 
    </td> 
    </tr> 
    </table> 
    <table border="0" width="100%"> 
    <? 
    $link = mysql_pconnect("192.168.0.1","root",""); 
    mysql_select_db("vodsystem",$link); 
    $str="Select filmname,filmpath,filmtype,inputdate,comment from filmlist";
    //以下是修改过的,你自己看看吧,估计应该看的懂
    $result = mysql_query ($str,$link); 
    $numrows=mysql_num_rows($result);
    if($numrows==0){
    echo "<tr><td colspan='4'>";
    echo "<div align='center'>没有符合条件的信息!</div>";
    echo "</td</tr>";
    }else{
    while ($RS=mysql_fetch_array($result))

    ?> 
    <tr> 
    <td width="20%" align="center"><a href="<?echo $RS["filmpath"];?>"><?echo $RS["filmname"];?></a></td> 
    <td width="10%" align="center"><?echo $RS["filmtype"];?></td> 
    <td width="52%" align="center"><?echo $RS["comment"];?></td> 
    <td width="18%" align="center"><?echo $RS["inputdate"];?></td> 
    </tr> 
    <? 
    } }
    ?> 
    </table> 
    </html> 
    测试完全通过了,另外我觉得有些东西你应该放到一个文件中,譬如连接数据库的那段代码,如果象你这么写,今后如果修改密码的话,你要一个文件一个文件的改,嘻嘻,给分~_~