Solved

Making a navigation button call a mysql query instead of a link

Posted on 2003-11-19
2
171 Views
Last Modified: 2011-08-18
Hi everyone,
I am new to DW and web design in general. I have started to get comfortable with connecting to mysql queries and all while using the form as the source and creating a Server behaviour.

What I would like to do more importantly is to have 3 navigation buttons creating a query and displaying the results of the query on the same page. For example, NEW, OLD, DEL nav buttons, I want the NEW button to run a query that will ONLY select the NEW records, and the OLD nav button to select ONLY the OLD records and so on to be displayed in a table.
I was wondering if anyone can point me to the right direction of doing that.
I hope the explanation of my problem is clear. I am using DW MX 2004.

Thank you
0
Comment
Question by:clekkas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
Saqib Khan earned 150 total points
ID: 9788285
clekkas You need to Create a Variable AND pass it to the same page to test the value.
For example lets say we have a variable called "actions"

when you click on NEW button pass its value to the same page

a href="this_page.asp?actions=NEW"

now in your page detect the value of actions variable

if request.QueryString("actions")="NEW" then
'sql here
elseif request.QueryString("actions")="OLD" then
'Sql for OLD here
else
' Default SQL
end if


Lemme know if you have any questions.
0
 

Author Comment

by:clekkas
ID: 9790265
Thank you very much for your quick and easy answer

Seems so simple now.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question