Untitled Document
Untitled Document
 
Weekly tutorial
Tutorial Name: Vibrant Tones
Tutorial Author: Pixel Digest
Weekly tutorial

Tutorial Name: HD2 Wallpapers
Tutorial Author: Trick Digest

 
Tricks News
 
Vibrant Tones
In this tutorial you will teach you how to how to create custom tones for the T-Mobile Samsung Vibrant. With this tutorial you will be able to change the Alarm, Notification, Ringtone, and ui sounds. Follow this simple tutorial and learn how.
 
Face Paint
In this tutorial learn how to blend your countries flag over your face usingAdobe Photoshop. This is a simple process that any beginner can follow. Follow that tutorial and learn how to recreate this effect. If you are having problems feel free to contact us.
... read more
 
  Sponsors
twitter Facebook
Twitter Facebook
 
Random Tutorials
Jigsaw puzzle
  Title Jigsaw puzzle
  Author: ilike2flash
Custom HD2 wallpapers
  Title Custom HD2 wallpapers
  Author: Trick Digest
Weather Icon
  Title Weather Icon
  Author: Pixel Apex
Improve iPhone battery Life
  Title Improve iPhone battery Life
  Author: Trick Digest
Scrapbook Photo Gallery
  Title Scrapbook Photo Gallery
  Author: Imajine
 
 
Links / Affiliates
 
Pixel Digest
A Adobe Photoshop tutorial site with useful tips and tricks.
 
Pixel Apex
An Adobe Photoshop, Flash and PHP Tutorial site, come and learn with us.
 
Tech 411
Your New Source For Tech Info!
 
Pixel2Life
Pixel2life is the largest tutorial search
engine on the internet catering to graphic
designers and programmers. From Photoshop
to Poser to C++, we have it all in the
fastest and friendliest search tool around.
 
Categories
3D Studio Max
Adobe Photoshop
Adobe Flash
Cascading Style Sheets (CSS)
Dreamweaver
Mobile
Networking
Inkscape
PHP Coding

Random Wallpaper
View More
 
Delete Record Untitled Document
 
Deleting PHP record from database.

In this tutorial i will teach you how to delete information stored in your database. This tutorial is a continuation of the PHP Gallery tutorial.

Introduction:

First we need to download couple software to get this working. We will be testing it locally on the computer first, then once its working we will upload it to the web server. This tutorial continues after the PGP Gallery, so i am assuming that you have the database setup and working with dreamweaver. You can follow this tutorial first if you have not. Its very simple, i will walk you guys through each step. So lets get started.

 

  1. WAMP5 : http://www.wampserver.com/en/index.php
    • Installing WAMP will automatically create a www folder located in C:\wamp\www
    • Create two folder in the www folder called, localroot and webroot
    • In the localroot and webroot folder create a folder that will correspond to your site example: trickdigest
    • In the site name folder located in local and web root folders create a image folder. Your folder tree should look like C:\wamp\www\webroot\trickdigest\images

      EMS SQL Manager for MySQL (WAMP5 comes with a sql manager, you can use it, or which ever one you are familiar with. 

Step1: Create and Setup database

Create a new PHP page verify.php Click ok, and click Bindings



Click on and select Recordset. Create the recordset below.

Table Code, copy and paste it into dreamweaver.

<table width="400" border="0" align="center" cellpadding="2" cellspacing="2">
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="90" bgcolor="#F4F4F4">Title:</td>
<td width="296" bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td bgcolor="#F4F4F4">Image:</td>
<td bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td bgcolor="#F4F4F4">Thumbnail:</td>
<td bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td bgcolor="#F4F4F4">Description:</td>
<td bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td bgcolor="#F4F4F4">ImageURL:</td>
<td bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td colspan="2" align="center" valign="middle" bgcolor="#F4F4F4">&nbsp;</td>
</tr>
</table>

Doing that will give you the table below

Click on the (+) next Recordset, you will see the fields shown above.

Click and Drag the title field over to the table as shown below.

Double click on the Recordset (rs67k) name.

This will open the window below. here we will be able to filter the information that will be displayed on the delete page.

click ok when you are finish.

Go back to the main page, in our case its the gallery.php page. Here we will add a delete button linking to the verify.php page.

After adding the delete text, double click on it to add a link

With the delete button highlighted click on the folder you see above opposite the link bar. This will open the window below, here is where we will specify the filters.

Click on the verify.php, now click parameters

Type in the name id, for the value click on the lighting bolt.

Select id and click ok. Text the gallery.php page with the delete button. At this point the filter should work. Next we will delete the information.

Click over to the verify.php page, and add the delete text shown below.

Create a new page and name it delete.php highlight the delete button and link to it as you previously did. With the linking completed. click on the delete page, here is where we will add the code.

Click Insert > Data Objects > Delete Record

Fill in the information and click ok when you are finish. Save all the pages and upload it to your local site, if you followed along it will work. If you are having problems contact us or check out the video.

Finish:

Finished, Need help or have questions feel free to contact us.

This Tutorial was Created By Trick Digest
© 2011 trickdigest.com. All Rights Reserved.

 


Latest Tutorials / Tricks   Random Tutorials / Tricks   Links / Partners   Navigate Trick Digest
Lava Man/Human Torch
Colour paint effect in AS3
Normal Face to Photogenic Face
Lets design Basic Alien
Tutorial Sites
Delete Record
 
Lava Man/Human Torch
Glass Text
Using CSS in AS3
How to Create Flash Quiz
Hanging Ribbon
iPhone Apps
Custom SMS for Iphone
 
Pixel Apex
Pixel Digest
Tech 411 Now
Pixel2Life
Majesticlicks
 
Tutorials
Support
Forum
Contact Us
Site Map
Links
Gallery

Copyright © 2008 - 2011 trickdigest.com, All Rights Reserved.