Php album system source code/* this is a simple php album system, including the following file conn. php database connection file and file upload function and paging function vc. php is used to display album files. php Photo Upload File index. php album management code savefile. php save file code
Php tutorial album system source code
/*
This is a simple php Photo Album system, including the following files
Conn. php database tutorial connection file and file upload function and paging Function
Vc. php used to display album
Files. php Photo Upload File
Index. php photo album Management Code
Savefile. php save the file code
*/
?>
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> untitled document </title>
<Link href = "config/csstutorial .css" rel = "stylesheet" type = "text/css"/>
</Head>
<Body>
Photo Album & nbsp; <a href = "files. php"> added </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 tutorial _ fetch_assoc ($ result [0])
{
?>
<Td width = "120" height = "150" align = "center" valign = "middle" bgcolor = "# ffffff">
<A href = "<? = "File/". $ row ["imname"]?> "Target =" _ blank "> "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