Home Community Submit Tutorials Downloads Gallery Links Contact FAQ's / Help
  Home
  Submit Tutorials
  Community
  Tutorials
  Fonts
  Templates
  Affiliates
  Photography Corner
  Site Map
  Contact Us
 
Affiliates
  Pixel Apex
  Trick Digest
  Racuda
  Adobe Tutorialz
  Pixel2life
  Good-Tutorials
  Tutorialized
  Deviantart
  Chipmunk-Scripts
  Majesticlicks
  Free-Brushes
 
Tutorial Categories
3D Studio Max
Adobe Photoshop
Adobe Fireworks
Adobe Flash
Adobe Flex
Adobe Illustrator
ASP.NET
Dreamweaver
eCommerce
Gimp
Maya
PHP Coding
Swift 3D Swift 3D
Windows Operation
 
Tutorial
Name:
Iron Man
Author:
Adobetutorialz
Gallery Image
Name:
Fallout Shelter
Author:
Pixel Digest
 
Search:
Search Example: Orb, Oman3d, Adobe Photoshop or Picture Editing
 
 
Insert Data - Learn how to insert information in to a PHP MySQL database.
Introduction: In this tutorial I will teach you how using dreamweaver you can insert information into a PHP MySQL database. If you are having problems feel free to e-mail us, or post a message on the forum.
 

Part1: What do I need to get started? (if you followed the previous php tutorial, display PHP MySQL data can can skip to step 5)
Since I am doing this locally on my machine For this to work you will need to have the software below installed. Also if you want to apply this to your live web site, your hosting company need to run PHP MYSQL

  1. WAMP5 : http://www.wampserver.com/en/index.php

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

Download and install both software, if you installed wamp5, by default it would create a folder located in C:\wamp\www\, create two more folders inside the www\ directory called localroot and the other webroot.

Part2: Creating the database and tables.
Start up EMS and click on the create new database icon.

Create a new database with the name, pixeltest_db and click next, and you will see the window below.

 

Click next and Finish. When you do that you should see the Registration database window. Just click ok. We need to create the user to access the database click on the User Manager Icon . Change the Servers to Localhost and click ok. At this point click on the Add User Icon when you do that you will see the window below.

 

This is just a demonstration, so your username and password will be different. Make sure to select All Privileges and With Grant option. With that click ok to apply the settings.

Double click on the database you just created.

When you do that you will connect to the database where you will be able to see the tables.

 

With that click on the Create new table icon shown below.

With that it should send you into the Table Properties window. Click on the Fields tab.

 

Double click on the Column and enter the information shown below, below is how your table should look..


Table 1 

 

With that click on Compile after your tables has finished compiling click on Data

 

Click on to Insert Record. Fill in the information shown below. The id is an auto increment so you don't need to do anything with that. After each data entry make sure to click on Post Edit

This is how your table should look, with the data entered. The image location will be different depending on where you place the images.

Well we are finished with the database part.

Part3: Setting up Dreamweaver and creating the form.
Start up Dreamweaver and click New Site Manage Sites..

 

and click New Site. Click on the Advanced Tab and you will see the window below. Click on Local Info and fill in the information shown.

Local Info

  

Remote Info

 

Testing Server 

When you are finished click ok, Done

 Part4: Connecting to the database.
Click File New... and click on Dynamic Page PHP and click Create.

Click on the Shown in the databases tab and click on MySQL Connection.

With that the window below will come up. Fill in the information shown below.

This information has to match up with what you created using EMS, The password I used is pixeldigest.

Next click on Select, select the pixeltest_db database and click ok twice.

Part5: Creating the insert page.
Hit Ctrl+S and save your site as insert.php. Click, Insert Application Objects insert Record Record insertion form wizard. with that you should see the window  below.

Change the field1_id to a hidden field, click ok and saver your page. You should see the form below.

Hit, F+12 to preview and insert some information.

That is it, here is a video of the working insert form. Click Here

Finished:
Well that is it, hope it came out to what you expected. If you have any question or comment about this tutorial, feel free to post a message on the forum.

This Tutorial was Created By Mark
© 2007 pixeldigest.com. All Rights Reserved.

 
 
Help Support Us
 
 
 
News Updates
Updated the Forum, Unfortunately i could not use the same link as the old forum for the update. For the new link click Here. All the post and user name are still usable. So, if you previously registered you can still use the old username and password. Some accounts that was not used were deleted.  
 
News Update [10/16/07]
Yesterday on the 15th of October my gallery went down for some unknown reason. I was able to get the backup of the images, i just lost all the users. The gallery was not that active but i am sill pissed about what happened. I am in the process of reloading the gallery. Just give me some time and it should be up and running.Yesterday on the 15th of October my gallery went down for some unknown reason. I was able to get the backup of the images, i just lost all the users. The gallery was not that active but i am sill pissed about what happened. I am in the process of reloading the gallery. Just give me some time and it should be up and running.  
... Read More
 
Bookmark This Page
 
 
Untitled Document
Latest Gallery Image
 
Sponsors
Custom Shapes
Custom Shapes
 
 

Home | Submit | Tutorials | Forums | Gallery | Fonts | Downloads | Templates | Affiliates | Sitemap | Contact | FAQ's / Help

© 2005 - 2008 pixeldigest.com