帮忙看看一下数据库连接的错误!!!
$connid=@mysql_connect("localhost","root","Admin","test");
$sql="select pic from $table where id=$id";
$result=mysql_db_query("photo",$sql);
$image=mysql_result($result,0,"pic");
echo $image;
?>
和
if($offset == "")
{$offset = 0;}
$Connid = @mysql_connect("localhost","root","Admin","test");
$sql = "select id,name from photo order by id desc limit $offset,6";
$result = mysql_db_query("photo",$sql);
$num = mysql_num_rows($result);
if($num != 0)
{
$i = 0;
while($r = mysql_fetch_array($result))
{
$id = $r["id"];
$ftitle = $r["name"];
if($i == 0 or $i == 3)
{
echo "
$ftitle
";