程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> php相冊系統源代碼(1/5)

php相冊系統源代碼(1/5)

編輯:關於PHP編程

php相冊系統源代碼/*這是一款簡單的php相冊系統,包括有如下文件conn.php數據庫連接文件以及文件上傳功能和分頁函數vc.php 用來顯示相冊files.php 照片上傳文件index.php 相冊管理代碼savefile.php保存文件代碼

php教程相冊系統源代碼
/*
這是一款簡單的php相冊系統,包括有如下文件
conn.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.bkjia.com/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title>無標題文檔</title>
<link href="config/css教程.css" rel="stylesheet" type="text/css" />
</head>

<body>
像冊&nbsp;&nbsp;<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=mysql教程_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>

1 2 3 4 5

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved