New PHP/MySQL Connection extension doesn't show tables.What's the next step?

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default New PHP/MySQL Connection extension doesn't show tables.What's the next step?

    I'm creating Dreamweaver extensions to work with my CMS. Since it is already
    connecting to the MySQL database I'd like Dreamweaver to access the same
    connection without asking the developer for the MySQL credentials again. I
    have created the HTML form, the EDML for the connection script, and the
    JavaScript to stitch it together, and I can successfully create connections.
    The connection script looks good but when I try to expand the tables in the
    database window it doesn't post a request to the server and it just shows
    "None". I have a regular PHP MySQL connection on the same site which works
    fine.

    I feel like I'm missing a required next step which would tell it how to
    enumerate tables. It would be ideal if I could plug into the existing PHP
    MySQL code for this.

    I would really appreciate any help and/or pointers!

    zymsys Guest

  2. Similar Questions and Discussions

    1. Will pay someone to produce for me a step by step, detailed tutorialon how to integrate HTMLAREA or any similar CMS into a DreamWeaver builtsite.
      Hi, Why don't you use KTML Lite? It's free and has a Server Behavior for easy usage in Dreamweaver...
    2. Will pay someone to produce for me a step by step, detailed tutorial on how to integrate HTMLAREA or any similar CMS into a DreamWeaver built site.
      Will pay someone to produce for me a step by step, detailed tutorial on how to integrate HTMLAREA or any similar CMS into a DreamWeaver built site.
    3. Please teach me how to create a flash game step by step.
      Halo!EveryBody!!!Do anyone of u here can teach me how to create a flash game step by step,better hav pic to show me how to do.Or can let me know any...
    4. EPS export:Step by step instructions needed
      Okay. I confess: I am uselss at exporting EPS files! I need to export an EPS file from Freehand version 10 that can be opened in Adobe Illustrator...
    5. HELP!Step-by-step guide to inserting a TimeOut needed...
      I have created a touchscreen game in Director MX and need to insert a time-out whereas if the game is left mid-play for a certain amount of time it...
  3. #2

    Default Re: New PHP/MySQL Connection extension doesn't show tables. What's the next step?

    "zymsys" <webforumsuser@macromedia.com> wrote in message
    news:fiuho4$ao8$1@forums.macromedia.com...
    > I'm creating Dreamweaver extensions to work with my CMS. Since it is
    > already
    > connecting to the MySQL database I'd like Dreamweaver to access the same
    > connection without asking the developer for the MySQL credentials again.
    > I
    > have created the HTML form, the EDML for the connection script, and the
    > JavaScript to stitch it together, and I can successfully create
    > connections.
    > The connection script looks good but when I try to expand the tables in
    > the
    > database window it doesn't post a request to the server and it just shows
    > "None". I have a regular PHP MySQL connection on the same site which
    > works
    > fine.
    > I feel like I'm missing a required next step which would tell it how to
    > enumerate tables. It would be ideal if I could plug into the existing PHP
    > MySQL code for this.
    >
    > I would really appreciate any help and/or pointers!

    Are you using the Database access functions?
    [url]http://livedocs.adobe.com/dreamweaver/8/apiref/07_mmd31.htm[/url]

    MMDB.getTables()
    [url]http://livedocs.adobe.com/dreamweaver/8/apiref/07_mmd42.htm[/url]

    MMDB.getColumns()
    [url]http://livedocs.adobe.com/dreamweaver/8/apiref/07_mmd34.htm[/url]


    Or are your trying to create a new Connection Type for the
    PHP_MySQL_ServerModel or a whole new servermodel alltogether?

    Joris van Lier Guest

  4. #3

    Default Re: New PHP/MySQL Connection extension doesn't showtables. What's the next step?

    [q]Originally posted by: Newsgroup User
    Or are your trying to create a new Connection Type for the
    PHP_MySQL_ServerModel or a whole new servermodel alltogether?
    [/q]
    Yes, I'm trying to create a new connection type for the existing "PHP MySQL"
    server model. I just had a small breakthrough! It seems I have to define both
    the connection string and the individual attributes in the connParams object
    returned by findConnection. I tried hard-coding them into the function and it
    now lists the tables in the database window. Woo hoo!

    My next challenge is that this information is stored in a config file on the
    remote server (either testing or live) and isn't necessarily copied to the
    local filesystem. I'm just looking for the API now which will let me load the
    remote config file so I can parse it for these values. I think I'm getting
    close!

    zymsys Guest

  5. #4

    Default Re: New PHP/MySQL Connection extension doesn't show tables. What's the next step?

    "zymsys" <webforumsuser@macromedia.com> wrote in message
    news:fiukb7$de9$1@forums.macromedia.com...
    > [q]Originally posted by: Newsgroup User
    > Or are your trying to create a new Connection Type for the
    > PHP_MySQL_ServerModel or a whole new servermodel alltogether?
    > [/q]
    > Yes, I'm trying to create a new connection type for the existing "PHP
    > MySQL"
    > server model. I just had a small breakthrough! It seems I have to define
    > both
    > the connection string and the individual attributes in the connParams
    > object
    > returned by findConnection. I tried hard-coding them into the function
    > and it
    > now lists the tables in the database window. Woo hoo!
    >
    > My next challenge is that this information is stored in a config file on
    > the
    > remote server (either testing or live) and isn't necessarily copied to the
    > local filesystem. I'm just looking for the API now which will let me load
    > the
    > remote config file so I can parse it for these values. I think I'm
    > getting
    > close!
    I think you want the HTTP API
    [url]http://livedocs.adobe.com/dreamweaver/8/apiref/03_http.htm[/url]


    Joris van Lier Guest

  6. #5

    Default Re: New PHP/MySQL Connection extension doesn't showtables. What's the next step?

    Thanks for the tip... Unfortunately I can't get at the database info through
    http for security reasons. For now I have it prompting the user to download
    the config file if it can't find it locally. Not as user friendly, and I'm
    sure there's a way to automate this, but it gets the job done for now.

    zymsys Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139