Home arrow MySQL arrow Online Photo Album Development using PHP and GD: Part 2

Online Photo Album Development using PHP and GD: Part 2

In this part Frank will explain how to code the photo album using PHP and MySQL. This is the second part of his series and focuses on building the user interface.

TABLE OF CONTENTS:
  1. Online Photo Album Development using PHP and GD: Part 2
  2. Code: Explained
  3. Configurating
  4. Connecting to the Database
  5. 1,2,3, Testing
By: Frank Manno
Rating: starstarstarstarstar / 34
April 22, 2004

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

Before we can upload our images, we need to create our albums. Our album creation form is very simple. We will have 2 fields and 1 button: album name, album description, and submit. We'll call our script create_album.php:

 
<p><!--p<-->include("../include/config.php"); 
<
br />

 
<br />
<br />
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<br />
<tbody>
<tr>
<br />
<td>
<form action="add_album.php" method="post">
<br />
<p> </p>
<br />
<table id="addAlbum" cellspacing="0" cellpadding="3" width="60%" align="center" border="0">
<br />
<tbody>
<tr>
<br />
<td valign="top">Add 
<br />New Album</td>
<br /></tr>
<br /></tbody></table>
<br />
<table cellspacing="0" cellpadding="5" width="60%" align="center" border="0">
<br />
<tbody>
<tr>
<br />
<td colspan="2" height="35">Please indicate the number of images you wish 
<br />to upload to your album(s). If you would like to create a new album, 
<br />click the Create New Album link below.</td>
<br /></tr>
<br />
<tr>
<br />
<td> </td>
<br />
<td> </td>
<br /></tr>
<br />
<tr>
<br />
<td>Album Name:</td>
<br />
<td>
<input id="album_name" type="text" size="40" value="" name="album_name" /> 
<br />
<br />
<br />
<br /><a href="/administrator/edit_albums.php">Edit Existing Album(s)</a> </td>
<br /></tr>
<br />
<tr>
<br />
<td>Album Description:</td>
<br />
<td><textarea id="album_desc" name="album_desc" rows="4" cols="30"> </textarea></td>
<br /></tr>
<br />
<tr>
<br />
<td>
<p> </p>
<br /></td>
<br />
<td>
<input id="submit" type="submit" value="Continue" name="submit" /></td>
<br /></tr>
<br /></tbody></table>
<br />
<table cellspacing="0" cellpadding="3" width="60%" align="center" border="0">
<br />
<tbody>
<tr>
<br />
<td><a href="/administrator/index.php">Main Menu</a> | <a href="/administrator/new_album.php">Create 
<br />New Album</a> | <a href="/gallery.php">View Gallery</a></td>
<br /></tr>
<br /></tbody></table>
<br /></form>
<br /></td>
<br /></tr>
<br /></tbody></table>



>

 
 
>>> More MySQL Articles          >>> More By Frank Manno
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

MYSQL ARTICLES

- Oracle Unveils MySQL 5.6
- MySQL Vulnerabilities Threaten Databases
- MySQL Cloud Options Expand with Google Cloud...
- MySQL 5.6 Prepped to Handle Demanding Web Use
- ScaleBase Service Virtualizes MySQL Databases
- Oracle Unveils MySQL Conversion Tools
- Akiban Opens Database Software for MySQL Use...
- Oracle Fixes MySQL Bug
- MySQL Databases Vulnerable to Password Hack
- MySQL: Overview of the ALTER TABLE Statement
- MySQL: How to Use the GRANT Statement
- MySQL: Creating, Listing, and Removing Datab...
- MySQL: Create, Show, and Describe Database T...
- MySQL Data and Table Types
- McAfee Releases Audit Plugin for MySQL Users

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: