How do I create a simple database search

Either I'm being very stupid or all the manuals and books I'm
reading really are skirting round the obvious question of how do I
build a search page (using Dreamweaver 8) that searches a database
using only valid values previously fetched from the database. Can
anyone advise?
Example:
Say I've got a table called members which holds a list of
members of a gym. Say I want to offer my users a way of filtering
down the list of members by (say) home town and hair colour.
What I want to do is offer my users two lists which are
generated using Datasets: One listing all the unique hometowns of
my members and one listing unique hair colours. I want my users to
enter search criteia but only valid ones - so they must select from
the list of valid values I provide them with. I'll then filter my
main resulkts based on what they select.
But how do I do this? Not using URL variables obviously. And
not using Form variables as you can't list database items in a form
variable (can you?). I've got "DW 8: The Missing Manual" which I
was hoping would give me the answers I'm looking for but instead
seems to get very excited about the power of Dreamweaver 8 then
skirts round the fact that you can't use current database values to
do a database search!!! (unless I'm missing something that is)
While I'm at it - I'd idealy want to achieve all this on a
single page but I'm willing to concede on that if technology
predicts otherwise.
ASP.NET (VB)
Dreamweaver 8.0.2
Any guidance would be very welcome. (I'm new to all this by
the way)

> But how do I do this? Not using URL variables obviously.
Querystrings could be used if you wanted to. That'd be nice
so people could
bookmark the page.
> ASP.NET (VB)
Might be time to consider NOT using DW, as it no longer
supports ASP.net
But, in pseudo code:
onPageLoad:
- get list of hometowns
- populate hometown dropdown
- get list of hair colors
- populate hair color dropdown
onPostBack:
- check to see if there is a hometown selected
- check to see if there is a hair color selected
- if either of the above, modify the WHERE clause in your
SQL query to
reflect those values.
If you wanted to add querystrings, modify the logic as such:
onPageLoad:
- get list of hometowns
- populate hometowndropdown
- get list of hair colors
- populate hair color dropdown
- check for querystrings
- if they exist, grab them, modify the WHERE clause in your
SQL query to
reflect those values and show the results.
onPostBack:
- check to see if there is a hometown selected
- check to see if there is a hair color selected
- do a response.redirect to this page adding the appropriate
querystrings
if either of the above had values.
-Darrel

Similar Messages

  • Creating a simple database search

    Hi
    I'm being dragged kicking and screaming into site development
    by the needs of an important customer, and I'm trying to create a
    very simple search of a database.
    I'm using DW CS4 with PHP & MySQL on a Mac (Leopard)
    using MAMP.
    I've set up two pages for the task.
    1) a HTML page with a form using the 'GET' method
    2) a PHP page with the Recordset to filter 'postcode' 'begins
    with' using the 'URL Parameter' and 'postcode', and sort by
    'company' 'Ascending'
    Running a test in the Recordset works great.
    When testing in a browser however (Firefox and Safari), the
    post code appears in the URL string when arriving at the results
    page, but no results show.
    When I don't apply a filter in the Recordset, all records
    display in the results page perfectly.
    I'm going even more grey (gray?) so any help and advice would
    be greatly appreciated.
    Many thanks.

    I've sorted it.

  • How do I create a simple gallery in iweb? I don't know much coding though!

    how do I create a simple gallery in iweb?
    I don't know much coding though so I struggle
    with some tips given on-line. I've spent many
    hours on it with no success. Helpful advice will be greatly appreciated.

    Instructions :
    http://www.wyodor.net/blog/archives/2010/03/entry_308.html
    Result :
    http://www.wyodor.net/_Demo/Fancy/Fancy2.html
    http://www.wyodor.net/mfi/Dide/Photos.html

  • How do l create a new database in Oracle 10g Express

    How do l create a new database in Oracle 10g Express, other than the one that is created on installation?

    Hello,
    You cannot create a second XE database on the same server.
    But, Oracle database can support as many Schema as you want.
    "Oracle database" is like "SQL Server Instance" and "Oracle Schema" is like "SQL Server database". I means by this shortcut that for
    the end users accessing to different Schemas looks like accessing to different databases.
    You can have several applications on the same database. Each application has its own Schema and Datafile (Tablespace) structure.
    So on your XE database you can add a new Tablespace and create a new User/Schema as follows:
    sqlplus /nolog
    connect / as sysdba
    create tablespace {color:red}new_tablespace_name{color}
    extent management local autoallocate
    SEGMENT SPACE MANAGEMENT AUTO
    datafile '{color:red}complete_datafile_name{color}' size 100M autoextend on next 10M maxsize unlimited;
    create user {color:red}new_schema_name{color} identified by {color:red}password{color}
    default tablespace {color:red}new_tablespace_name{color}
    temporary tablespace TEMP
    quota unlimited on {color:red}new_tablespace_name{color}
    grant connect, resource to {color:red}new_schema_name{color};Then you can connect to this new User/Schema as you defined it and create your new structure and load datas.
    Hope it can help.
    Best regards,
    Jean-Valentin

  • How we can create Oracle 9i Database through Commands.

    How we can create Oracle 9i Database through Commands.
    We need step by step process and all the scripts.

    CREATE DATABASE
    Caution:
    This statement prepares a database for initial use and erases any data currently in the specified files. Use this statement only when you understand its ramifications.
    Note Regarding Security Enhancements:
    In this release of Oracle and in subsequent releases, several enhancements are being made to ensure the security of default database user accounts.
    To provide guidance for configuring Oracle9i in a secure manner, Oracle Corporation provides a security checklist. Oracle Corporation recommends that you read this checklist and configure your database accordingly. The security checklist can be found at the following URL:
    http://otn.oracle.com/deploy/security/oracle9i/pdf/9iR2_checklist.pdf
    Examples
    Creating a Database: Example
    The following statement creates a database and fully specifies each argument:
    CREATE DATABASE sample
    CONTROLFILE REUSE
    LOGFILE
    GROUP 1 ('diskx:log1.log', 'disky:log1.log') SIZE 50K,
    GROUP 2 ('diskx:log2.log', 'disky:log2.log') SIZE 50K
    MAXLOGFILES 5
    MAXLOGHISTORY 100
    MAXDATAFILES 10
    MAXINSTANCES 2
    ARCHIVELOG
    CHARACTER SET AL32UTF8
    NATIONAL CHARACTER SET AL16UTF16
    DATAFILE
    'disk1:df1.dbf' AUTOEXTEND ON,
    'disk2:df2.dbf' AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED
    DEFAULT TEMPORARY TABLESPACE temp_ts
    UNDO TABLESPACE undo_ts
    SET TIME_ZONE = '+02:00';
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_55a.htm#SQLRF01204
    Joel P�rez

  • How do I create a simple message board (forum)

    I am a BC new-bee. How do I create a simple message board (forum) in BC to use on a Muse site since no widget is available there.

    No worries,
    The simple way should be that:
    open your forum page in Muse
    under "object" > "insert HTML" > paste "{module_forum,a,}"
    click ok
    move the textbox to the right position
    now publish this page to your bc site
    if you have any forums set up in the admin of your site (http://yourdomain.com/admin) it should show you the title of the forum.
    if there are no forums set up, you will need to create a forum in bc (Modules > Forums)
    Try this and let me know how it turned out.
    [ advertising removed by admin ]

  • How do I create a simple search program to search java console log

    I wanted to know how can I write a simple program to return a particular value from the java console.
    Let me give u a brief.
    There is an application that I use, say "XYZ".Every time I perform an action on "XYZ" a log gets created in the java console. One such thing in the log I want to search is "ANI" and the program/script shud return the value adjacent to it.
    Log Example:
    NumCTIClients:0 CallType:CALLTYPE_PREROUTE_ACD_IN
    ConnectionDeviceIDType:CONNECTION_ID_DYNAMIC
    ConnectionCallID:4 ConnectionDeviceID:"0"
    ANI:"9782755100" DNIS:"0006"
    DialedNumber:"8002755010" CED:"1"
    RouterCallKeyDay:145000 RouterCallKeyCallID:34320231
    CallVariable1:"1234567" CallVariable2:"0"
    CallVariable3:"0006" CallVariable5:"26000 123-45-6789
    Not Valid " CallVariable6:"1001123-45-6789
    26000000000038404LPCFAA" CallVariable7:"THIBAULT,
    JOHN C. " CallVariable8:"CISCO
    TESPHE " )
    Now my understanding is that whenever java logs in the console it appends at the top, i.e, first record stays on top of the log sheet.
    Now this script/program shud look up the top-most line which reads ANI and return the corresponding value which in the abv ex. was "9782755100"
    I wud also want a small button when clicked wud copy the "9782755100" to the clip board
    Edited by: SasK on Feb 9, 2008 6:09 PM

    dillmann74 wrote:
    Hello all,
    I am looking for a way to terminate a program when the user enters stop. I am using textpad, and I am running windows xp home. Here is where I need it....
    System.out.print( "Enter employee name:" );
    String nameOfEmployee = input.next();
    System.out.println();
    I need to be able to enter stop in the enter employee name area to terminate the program.
    Thank you all for your advice.Do you know about if statements?
    If not check out the java tutorials here
    if you do then I don't understand your question.

  • How can i create a new database instance in oracle 10g express edition?

    hello everybody
    i'm a student
    i am developing a database application
    i'm using oracle 10g express edition
    to run my application i need to create another database instance
    but i didn't find any option for doing so in that product
    if there is pls tell me where it is?
    if not pls tell me how to manually create it?
    regards,
    Chaitanya

    Chaitanya Babu M wrote:
    yaa i'm sure about that .
    i want one more instance of database.Can you perhaps explain why? I have a fair share of production and development servers - and not a single one of them needs to run more than one database instance.
    So I'm interested in what requirement you are trying to satisfy by using two database instances on a single platform.
    Oh yeah - if you want to create a custom XE instance (different SID, different tablespace sizes, more/less PL/SQL stuff installed, hack standard), make a copy of your XE db creation script (in your XE's +$ORACLE_HOME/bin+ and called createdb.sh ) and modify that for your needs.
    PS. even with a different SID, only a single XE instance can be run at a time - you can however have 2 different ones defined and then use one at a time (e.g. testing international settings, init param differences, etc.)

  • How can i create a simple netweaver portal page that shows text and images?

    Hi,
    i have a simple question or maybe it's not so simple.
    I am completly new to SAP Netweaver 2004s Portal. At the moment i'm trying to understand the struture of the whole thing. I already know how to create roles, worksets and pages and i know how to combine the different elements so a user can acces them.
    And now i want to create a simple portal page that shows text and images. Is it possible to create such a simple page with the portal content studio? What iView do i have to use?
    (I just want to create a start page with a welcome text on it.)

    Marc
    Considering that you would any ways go ahead with complex development from this simple start page I recommend create a Web dynpro Iview for your start page (include the Iview in your page).
    For putting the contents use Netweaver Developer studio to build a simple start page application and put your static text on that Iview.
    Please go through the following log after your NWDS development is over - This will make you comfortable for further challenging work.
    http://help.sap.com/saphelp_erp2005/helpdata/en/b7/ca934257a5c96ae10000000a155106/frameset.htm
    Do reward points if this helps and let me know of you want anything more.

  • Newbie....  How do I create a new database in mysql????

    I have added the mysql service, but I have no idea where the front end is, or how to access it so that I can create a new database, and set the user name and PW for this database??? I am used to using things like MAMP and XAMP, where it has the web front end. Does OSX server have the same thing? I want to configure a test Joomla test site.... Thank you...

    There's no built-in GUI for managing MySQL in Mac OS X, but you're free to install any of the MySQL tools to do so if you're not up to managing it via the command line.
    There's the free PHPMyAdmin, or the commercial NaviCat, amongst others.

  • How do I create a simple flare?

    Hello,
    I am a total newbie to AI, so any help/advice would be greatly appreciated.
    I am trying to create a simple flare that will make my light bulb look like it is glowing really bright.  I have been fooling around with the flare tool, but I can not figure out how to change the colors of the flare, etc.
    I want the background of the flare to be transparent so that I can use it on any of my images and the image will show through.  There are 5 different color flares that I need since I have 5 different bulb colors...1 yellow, 1 blue, 1 green, 1 amber, 1 red.  I think that the scale should be about 25% height to 100% width...
    Also, I want the same affect for a lighthouse image that I would like to put together...Like the light from the lighhouse is really bright and a focal
    point.
    Any help?
    thx
    Mike

    There's a multitude of ways to draw flares. But let's explore the Flare Tool a bit more. After all, it's been sitting there occupying primary tool space in the Toolbox for years; might as well use it in the rare times you have occasion for it. To get a sense of the behavior, try the following exercise.
    (The following assumes a CMYK document.):
    Additional tips:
    Like so many Illustrator features, tweaking the settings in the Flare Tool's stupid modal dialog is excruciatingly tedious. Before clicking to create the Flare you are going to adjust, go to the View menu and Hide Edges. Turn on the Preview checkbox in the dialog. Now you'll be able to tell what your adjustments are making are doing, without Illustrator's annoying highlighting of every path in a selected Group. (Absolutely hideous interface. I despise this program!)
    Once you finallyget a Flare that you find useful, drag it and drop it into the Symbols Palette. Then save the Symbol Library somewhere for safe keeping, naming it UsefulFlares. Next time you work with Flares, load the library, even if you need a different Flare. When you manage to create another Flare you find useful, make it a Symbol, and export the Symbol Library again. (Do the same kind of thing with Brushes.)
    Flares stored as Symbols, of course, can also be colorized somewhat by using the Symbol Stainer. That's a quick way to add a little color variance to tiny flares used as stars. But it's rather unpredictable due to the Screen Opacity Mode.
    Don't be afraid to use two different Flares together. Store them together in the same Symbol.
    The highlights of the screw threads on the bulbs are just an ArtBrush made from an expanded radial black-to-white grad, applied off-center to a circle. The ArtBrush is frequently useful for specular lights on cylindrical surfaces. The Brush's colorization mode is set to Hue Shift. (When expanding the grad, remember: There's no need to go nuts with the number of steps. 10 is usually a gracious plenty.) Each screw thread is just a single curved path with two Strokes: A thick black stroke with rounded end caps and an added stroke for the highlight brush.
    JET

  • How can I create a new database?

    Hi,
    can anyone tell me the steps I have to do if I want to create a new database? Can I perform this operation from the console of the Enterprise Manager or from the DBA studio?
    Thank you.

    You can use DBAssist to create Database of your own desire. No need to go anywhere if u r working on 8i.
    If this sounds good to u then steps can be followed.
    Kartik

  • How can I create a simple chat function in a mobile app for iOS and Android

    I am wondering how can I create a chat function in my mobile app creating in AIR and Flex. The chat should be similar to the one in WhatsApp.
    Do you know some possible solutions?
    Thank you in advance!

    To enable chat messages, you need a server. The kind of server depends on the application. Do you want to create a chat like application like WhatsApp, where the server pushes messages without an active connection? Or do you have some sort of online game, where chat messages can only be transferred when the client is connected already?
    I have an online game where clients are connected to a Java server at all time. From there it is pretty straight forward:
    2 textfields:
    - 1 line textfield for input messages
    - multi-line textfield for chat history. Make sure the textfields autoscrolls to the bottom when the content changes
    on enter or button push, send a socket message to the server.
    the server broadcasts all messages to all clients that are subscribers of the chat group.

  • How can you create a simple insert or update trigger

    I am trying to create a simple insert or update trigger to timestamp an xml document when I load it into my XML DB repository but I always get an error trying to compile the trigger.
    "ORA-25003: cannot change NEW values for this column type in trigger"
    Here is my PL/SQL:
    CREATE OR REPLACE TRIGGER "PLCSYSADM"."PLCSYSLOG_TIMESTAMP"
    BEFORE
    INSERT
    OR UPDATE ON "PLCSYSADM"."PLCSYSLOG"
    FOR EACH ROW BEGIN
    :new.sys_nc_rowinfo$ := xmltype('<datestamp>' || SYSDATE || '</datestamp>');
    END;
    Does anyone have an example that works ?
    Thanks in advance
    Niels Montanana

    http://developer.apple.com/referencelibrary/HardwareDrivers/idxUSB-date.html

  • How do I create a simple "prize draw" program?

    Hey, I'd like to create a simple "prize draw" program
    that randomly selects a name (or number) from a list of names, I'd like it to be my own custom version. For a programmer this is probably the easiest thing but I'm new to programming (beginner), don't eve know if I'm in the right subcategory (flash). Is there a tutorial or something somewhere that you guys think could help me out, please?

    Create the list as an array and use the Math methods to randomly pick one of the values from the array.
    var prizeArray = new Array("name1","name2");
    var drawnPrize = prizeArray[Math.floor(Math.random()*prizeArray.length)];
    trace(drawnPrize);
    If you don't know if you should be using Flash, then you probably don't want to be looking for help until you figure out what you intend to do for your custom design.

Maybe you are looking for

  • No data query runs longer time

    I have a table with 50 million records, partitioned based on date. if i do the query select * from test where trade_date = '01-mar-2010' brings the records in less than a second. works perfect but if there is no data for any given date in the table,

  • Clear GR IR Account for 1 po

    Hi I want to clear grir account for specific po but I am getting message " no data selected. Check selected parameters!!" I have entered in the mr11 following fields company code 1400 posting date : todays date Purchasing document : 4501736972 Purcha

  • Scrollbar of OLE in forms 6i

    Hi all I am using forms 6i and Oracle 10g. I have an entry form and in this form there is an OLE item. I am using MS word application in this ole. When i write 2/3 pages documents i can not see the whole documents in the OLE contents. If I could enab

  • Runtime v6i Crashing

    I also have a problem with runtime crashing while generating output to file. I running runtime 6.0.8.25.0... Any Suggestions? Mike

  • Other than ODBC error

    Hi Team, What are the errors that we can found other than the odbc error in obiee can please share the document if you have. Thanks in advance