Php album system source code (1/5)

Source: Internet
Author: User
Tags mysql tutorial php database

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.