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
   

MYSQL ARTICLES

- Oracle Announces New MySQL Specialization
- Constant Contact Chooses SkySQL for MySQL Su...
- Revoke Statement in MySQL
- The Grant Statement in MySQL
- SuccessBricks Announces ClearDB Availability...
- Building a PHP ORM: Deploying a Blog
- TROSYS Launches Free MySQL Manager and Admin...
- Building an ORM in PHP: Domain Modeling
- Building an ORM in PHP
- MySQL Leads Open Source Market, Gets Cluster...
- Oracle Announces Milestone Release for MySQL
- How to Stop SQL Injection Attacks
- New Defragmentation Solution for SQL Server
- Comparison of MyISAM and InnoDB MySQL Databa...
- MySQL Left and Right Joins


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 2 - Follow our Sitemap

Dev Shed Tutorial Topics: