这是我写的:
html 部分省去<html>…………<?php
if ($offset==" ")
{
$offset=0;
} $connid=@mysql_connect("localhost","root","123"); $sql="select title,time from pic_news order by id desc limit $offset,15";
$result=mysql_db_query("NEWS",$sql);
$num=mysql_num_rows($result)
if ($num != 0)
{
while($r=mysql_fetch_array($result))
{
$id=$r["id"];
$ftitle=$r["title"];
$ftime=$r["time"];
echo "<tr>
<td width=20 bgcolor=#C2E0A5 class=NT9 align=center>
</td> ";
echo "<td width=350 class=NT9 bgcolor=#c2e0a5>"; echo "<a href=news_info.php?id=$id>"; echo $ftitle;
echo "</a></td>
<td width=150 class=NT9 bgcolor=#c2e0a5 align=center>"; echo $ftime;
echo "</td></tr>";
}
}
?>…………</html>
html 部分省去<html>…………<?php
if ($offset==" ")
{
$offset=0;
} $connid=@mysql_connect("localhost","root","123"); $sql="select title,time from pic_news order by id desc limit $offset,15";
$result=mysql_db_query("NEWS",$sql);
$num=mysql_num_rows($result)
if ($num != 0)
{
while($r=mysql_fetch_array($result))
{
$id=$r["id"];
$ftitle=$r["title"];
$ftime=$r["time"];
echo "<tr>
<td width=20 bgcolor=#C2E0A5 class=NT9 align=center>
</td> ";
echo "<td width=350 class=NT9 bgcolor=#c2e0a5>"; echo "<a href=news_info.php?id=$id>"; echo $ftitle;
echo "</a></td>
<td width=150 class=NT9 bgcolor=#c2e0a5 align=center>"; echo $ftime;
echo "</td></tr>";
}
}
?>…………</html>
把@去掉,看看报不报错
不行!!!下载 源码 提示 说 数据连接 错误!我写的这些代码 直接就是
没有提示错误!
一张 空白的页面!
可是 我在代码 首尾 都写了 很多 html 东西
去掉 php部分 网页 正常显示!
php.ini 里面的设置 我不太清楚!!
只是知道 加载 一些 .dll !!
是按照 教程 做的!!
大哥!
应该怎么设置!???
最好能告诉 php.ini 里的有关设置!