+ Reply to Thread
Results 1 to 2 of 2

Thread: Help with drop downmenu!

  1. #1
    d0dsky's Avatar
    d0dsky is offline x10Hosting Member d0dsky is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    16

    Question Help with drop downmenu!

    Hello guys! here I am again!

    I've done my system working, now I have a problem with this approached.


    somebody help me what script I would use to populate the content of the second drop down menu with mysql query, to be available when I select some Artist name from the first drop down menu.

    the content of the second drop down menu should be the list of the album of an artist I select from the first drop down menu!

    edit:
    Here is my Table Structure!
    Code:
    -- --------------------------------------------------------
    
    --
    -- Table structure for table `album_tb`
    --
    
    CREATE TABLE IF NOT EXISTS `album_tb` (
      `album_sysid` int(11) NOT NULL auto_increment,
      `album_artist` varchar(50) NOT NULL,
      `album_name` varchar(100) NOT NULL,
      `album_year` varchar(50) NOT NULL,
      `created_by` varchar(50) NOT NULL,
      `published_by` varchar(50) NOT NULL,
      `date_created` varchar(20) NOT NULL,
      `date_published` varchar(20) NOT NULL,
      `date_updated` varchar(20) NOT NULL,
      `updated_by` varchar(50) NOT NULL,
      `published` varchar(1) NOT NULL default 'N',
      PRIMARY KEY  (`album_sysid`),
      UNIQUE KEY `album_name` (`album_name`),
      UNIQUE KEY `album_name_2` (`album_name`),
      UNIQUE KEY `album_name_3` (`album_name`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=37 ;
    
    
    
    --
    -- Table structure for table `artist_tb`
    --
    
    CREATE TABLE IF NOT EXISTS `artist_tb` (
      `artist_sysid` int(11) NOT NULL auto_increment,
      `artist_name` varchar(50) NOT NULL,
      `created_by` varchar(50) NOT NULL,
      `published_by` varchar(50) NOT NULL,
      `date_created` varchar(20) NOT NULL,
      `date_published` varchar(20) NOT NULL,
      `date_updated` varchar(20) NOT NULL,
      `updated_by` varchar(50) NOT NULL,
      `published` varchar(1) NOT NULL default 'N',
      PRIMARY KEY  (`artist_sysid`),
      UNIQUE KEY `artist_name` (`artist_name`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=48 ;


    please help me!

    Thank you very much!
    Last edited by d0dsky; 03-01-2010 at 10:00 PM.

  2. #2
    kbjradmin's Avatar
    kbjradmin is offline x10 Elder kbjradmin is an unknown quantity at this point
    Join Date
    Feb 2008
    Location
    Washington State, USA
    Posts
    512

    Re: Help with drop downmenu!

    being you need to populate the second drop-down based on the value of the first, you are probably going to need to use ajax. the ajax is going to need to request a small php script to make the second mysql query and return the data back to the client. do you have any experience with ajax?

+ Reply to Thread

Similar Threads

  1. Cannot drop mysql database
    By pvirzi in forum Free Hosting
    Replies: 9
    Last Post: 12-20-2009, 12:11 AM
  2. Css drop down menu
    By vidhem in forum Programming Help
    Replies: 10
    Last Post: 12-12-2008, 02:33 PM
  3. Drop Down Menu -> Mysql
    By White-Fox in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 09-01-2008, 03:20 PM
  4. Drop-Down Menu problems
    By gmshed in forum Programming Help
    Replies: 3
    Last Post: 04-11-2008, 01:33 AM
  5. Rain Drop Studios
    By XColl in forum Graphics & Webdesign
    Replies: 37
    Last Post: 07-11-2005, 03:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers