If you have any suggestions or comments, and would prefer using email, please contact me at:
gngabriel29[REMOVETHISANDREPLACEWITHYOU-KNOW-WHAT]ymail.com

October 8, 2008

Dreamweaver Database Query


Using dreamweaver to show database table data.

Create recordset

Select Binding tab

1. Select Bindings tab in Application panel (ensure you have already created database connection (see dreamweaver database setup))

Select Recordset option

2. Click +, then select Recordset, to open recordset dialog box

3. enter name for recordset, eg. rsShowUsers

4. select connection (should already be created), eg. connTest

5. select table (this is the table you wish to query), eg. user

Change recordset settings, and click Test

6. click Test (if recordset is created properly, then it should display Test SQL Statement screen, showing data returned from query), and click OK

7. click OK again, to confirm creation of new recordset

Insert table to contain dynamic fields

1. select Insert > Table, to open Table dialog box

2. enter 1 for Rows, 2 for Columns, and click OK, to create a table with 1 row and 2 columns

Set dynamic fields in table

1. click + sign beside new recordset, to ‘open’ it, to reveal fields associated with the recordset

Drag and drop dynamic field to a cell

2. drag and drop one of these dynamic fields, eg. username, onto the first column of the row

3. drag and drop one of these dynamic fields, eg. passwd, onto the second column of the row

Show all records of a recordset

1. select row containing the two dynamic fields

2. select Server Behaviors tab, in Application panel

Select Repeat Region option

3. click + sign, and select Repeat Region

4. select All records option

5. click OK

Show database data directly in dreamweaver

Click Live Data View

1. click live data view

Show Live Data View example

Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>. I unfortunately do not have a spoiler-code, so be sure mark spoilers well.



Anti-spam measure: please retype the above text into the box provided.