php相册系统源代码(1/5)
php相册系统源代码/*这是一款简单的php相册系统,包括有如下文件conn.php数据库连接文件以及文件上传功能和分页函数vc.php 用来显示相册files.php 照片上传文件index.php 相册管理代码savefile.php保存文件代码
php教程相册系统源代码
/*
这是一款简单的php相册系统,包括有如下文件
conn.phpphp教程连接文件以及php教程功能和分页函数
vc.php 用来显示相册
files.php 照片上传文件
index.php 相册管理代码
savefile.php保存文件代码
*/
?>
index.php
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.php100.com/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<link href="config/php教程.css" rel="stylesheet" type="text/css" />
</head><body>
像册 <a href="files.php">增加</a><br />
<hr color="#ff0000" align="left" size="1" width="80%" />
<table border="0" cellspacing="1" cellpadding="1" bgcolor="#cccccc"><tr>
<?php
require_once("config/conn.php");
$sql="select * from images order by imid";
$result=page($sql,16);
$i=1;
while($row=php教程_fetch_assoc($result[0]))
{
?>
<td width="120" height="150" align="center" valign="middle" bgcolor="#ffffff">
<a href="<?="file/".$row["imname"]?>" target="_blank"><img src="<?="file/s_".$row["imname"]?>" alt="<?=$row["imtitle"];?>" border="0"/></a></td>
<?
if($i%4==0) echo "</tr><tr>";
$i++;}
?>
</tr>
</table>
<?php echo $result[1]; ?>
</body>
</html>
- 上一篇: php简单中文分词系统(1/2)
- 下一篇: dedecms分词系统调用代码