Connecting database in dreamweaver to coldfusion

i did access database. i created site with all the files and
images. i did the connection from coldfusion to the database in
dreamweaver through the "datasources " in the coldfusion
administrator, but when i try to make the page appear by clicking
view - live data i get this message: "dreamweaver couldn't convert
properly the live page from the server". can someone help me ?

here are the codes:
<cfquery name="artwork" datasource="cftutorial">
SELECT FIRSTNAME, LASTNAME, ARTNAME, DESCRIPTION, PRICE,
LARGEIMAGE, ISSOLD, MEDIATYPE
FROM ARTISTS, ART, MEDIA
WHERE ARTISTS.ARTISTID = ART.ARTISTID
AND ART.MEDIAID = MEDIA.MEDIAID
</cfquery>
<cfdump var="#artwork#">
and then:
<table border="0" cellpadding="15" cellspacing="0"
bgcolor="#FFFFFF">
<cfoutput query="artwork">
<cfif artwork.currentrow mod 3 eq 1>
<tr>
</cfif>
<td valign="top" align="center" width="200">
<img src="images/#artwork.largeImage#" width="200"
height="200"><br>
<strong>#artwork.artName#</strong><br>
Artist: #artwork.firstName# #artwork.lastName#<br>
Price: #artwork.price#<br>
#artwork.mediaType# - #artwork.description#<br>
<font color="##FF0000">#artwork.isSold#</font>
</td>
<cfif artwork.currentrow mod 3 eq 0>
</tr>
</cfif>
</cfoutput>
</table>
thank you in advance

Similar Messages

  • Need help connecting database in Dreamweaver MX

    I'm using Dreamweaver MX, XP Pro and IIS. I installed the
    latest version of PHP (5.2) and have mySQL and the ODBC driver
    installed.
    I set up the testing site in Dreamweaver. Yet, Dreamweaver
    cannot locate my database(s).
    I followed steps to edit the PHP.INI file to work with
    Dreamweaver correctly, yet it's not working. However, now instead
    of getting "An unidentified error has occured", I'm getting the
    vague "HTTP Error Code 500 Internal Server Error" error.
    PHP was installed manually at first but that didn't work
    right so I reinstalled it using the auto install. It should be
    accurate, only I can't see where I would enter the path to the
    database files; there is no line for that in the SQL section. But
    it's in the default directory so it should know where it is
    automatically ... ?
    Help???!!! Can someone walk me through the steps to see why
    it isn't pointing to the databases?

    Bump.

  • Connection error mysql database in Dreamweaver

    the error message is - HTTP error code 404 file not found. here are some possible reasons
    screen shot - http://netwizlk.site50.net/images/DW-error.jpg
    1)there is no testing server running on the server machine.
    2)the testing server specified for this site does not map to the http://localhost/_mmServerScripts/MMhTTPDB.php verify that the URL prefix maps to the root of the site.
    guy pls help me to solve this problem. I tried several times to connect my mysql database with dreamweaver but ended up having this error I reinstalled dreamweaver cs4 and XAMPP still the error is not rectified my both remote and local files are stored in XAMPP server location called in c:\xampp\htdocs\htdocs\myweb
    anybody who could give me a speedy solution for this issue will be highly appreciated thanks alot guys.

    c:\xampp\htdocs\htdocs\myweb
    MM serverscripts must be at the root level of the virtual server, that is directly in the htdocs folder.
    Mylenium

  • How do you display database in Dreamweaver CS6?

    Trouble displaying 'greendata' database in Dreamweaver CS6
    I am working on the exercise files for Adobe's Dreamweaver CS6 "Classroom In A Book", CH. 13 'Working with Online Data'. The problem I am facing is that the database provided in the exercise files ‘greendata’ is not being listed when I go to select a database.
    I followed the specific instructions; but, I am still new to Dreamweaver and programming.
    The MySQL Connection is working on the MySQL server 'localhost' with User name ‘root.’
    I have XAMPP installed on my computer to run MySQL/PHP. I already checked localhost using my web browser to make sure that the ‘greendata’ is listed as a database; yet, it is not listed from the options when I try to set it up in Dreamweaver. 
    How can I solve this problem? Please help! 
    I need to have the 'greendata' database displayed from the list of options under 'select' within the MySQL Connection in Dreamweaver.

    Thanks for those tutorials Nancy.
    I followed the insturctions and I am still having the same problem.
    The database that I create in phpMyAdmin is not being listed as an option within Dreamweaver. The connection is setup but I'm guessing that the problem is within XAMPP?
    Why is it that a database that I have created in XAMPP isn't being transfered to Dreamweaver? 
    I've attached a few screenshoots to give you a better understanding of what I'm looking at. Hope someone can help!

  • Using a MsAccess database with Dreamweaver CS4?

    Hi Everyone,
    I have a question concerning using a Microsoft Access Database with Dreamweaver.
    First, I was wondering if this was possible. Second, if it is, could someone give me instructions or a link on how to do this. I am pretty new to Dreamweaver, code, etc..., so simpler instructions on how to acheive this would be great.
    Here is some information...
    1) I am running Windows XP SP2
    2) I am using Microsoft Office 2003 (Acces included)
    3) I am using Dreamweaver CS4
    4) I have installed XAMMP (Apache,MySQL, FileZilla, and PHPmyAdmin, as far as I know)
    If anyone needs more information, I'll be hapy to share it as soon as possible.
    Any help is greatly appreciated,
    Musicman1994

    The choice of database really depends on which server-side technology you plan to use, and what you're actually planning to use it for.
    Access was designed to create databases for small office systems. Although I personally found it very confusing, a lot of people like it and say it's easy to use. However, its major drawback is that it creates very large files; and as soon as the website gets a reasonable amount of traffic, Access has a tendency to freeze or lock up. You can create your database in Access and then export it to another database system, such as Microsoft SQL Server or MySQL. But it's better to start with the database that you ultimately plan using.
    I certainly wouldn't recommend developing anything in ASP and then attempting to convert the website to PHP. Although all server-side programs share common features and structures, the code is completely different. So, take some time over choosing your technology first. If you have never developed in ASP, you should be aware that Microsoft stopped developing it about ten years ago. It's still popular and widely available, but ASP is likely to dwindle in usefulness as the years go by. Use PHP or ColdFusion, both of which are supported by Dreamweaver. The other main alternative is ASP.NET, but that's no longer supported by Dreamweaver.

  • Help re databases in Dreamweaver 8

    I am looking to set up a members database using Dreamweaver 8. I have MS Access. Is there an easy way of doing this and having a "login" facility based on membership category.  The website is stored locally and uploaded to remote server via FTP connection.

    Many web based membership systems run in PHP/MySQL on Linux servers (rather than MS Access which usually ties you to a Windows server).
    You can develop this locally using WAMP http://www.wampserver.com/en/ then upload your site to a PHP-enabled server.

  • MySQL databases and dreamweaver

    Please, somebody help me!!
    I am on a Mac. I have my site up but can't use it because of
    the database issues I am having.
    1. I don't write code - hence my purchase of Dreamweaver
    2. My host will not allow me to connect to MySQL
    (server-side) and suggested I try an SSH. I got Navicat.
    It seems I need to connect to the database through
    Dreamweaver in order to create my PHP pages. I don't know how to do
    it or if it is possible using an SSH (Navicat)
    Also I don't understand the whole "test server" thing. It was
    suggested I connect my Mac to a Windows machine to create a testing
    server. Is this really necessary? I have an external hard drive
    with tons of space. Can I use that? Are there any other options? I
    don't know a single Mac user who has a spare windows machine lying
    around.
    My site is ready to go but useless unless I can this
    database-access problem solved. I need to create PHP pages but
    cannot do it without some sort of access to my database.
    Please HELP!!!

    See if this helps:
    http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php_05.html
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "farfalle" <[email protected]> wrote in
    message news:ff5t8j$da5$[email protected]..
    > Please, somebody help me!!
    >
    > I am on a Mac. I have my site up but can't use it
    because of the database
    > issues I am having.
    >
    > 1. I don't write code - hence my purchase of Dreamweaver
    > 2. My host will not allow me to connect to MySQL
    (server-side) and suggested I
    > try an SSH. I got Navicat.
    >
    > It seems I need to connect to the database through
    Dreamweaver in order to
    > create my PHP pages. I don't know how to do it or if it
    is possible using an
    > SSH (Navicat)
    >
    > Also I don't understand the whole "test server" thing.
    It was suggested I
    > connect my Mac to a Windows machine to create a testing
    server. Is this
    > really necessary? I have an external hard drive with
    tons of space. Can I use
    > that? Are there any other options? I don't know a single
    Mac user who has a
    > spare windows machine lying around.
    >
    > My site is ready to go but useless unless I can this
    database-access problem
    > solved. I need to create PHP pages but cannot do it
    without some sort of
    > access to my database.
    >
    > Please HELP!!!
    >

  • Connection Database Release CC 2014

    I installed the DC version in 2014 created a connection to the database but I get this error during the execution of getComponentChildren in Connections.htm, there is a javascript error.Connection

    The connection is to a database on a server, it works fine with the CS6 version but the same with the DC version connects to the database but when I try to view the data in the tables reports the error that I wrote
    Il giorno 01/lug/2014, alle ore 04:58, Ben Pleysier <[email protected]> ha scritto:
    Connection Database Release CC 2014
    created by Ben Pleysier in Dreamweaver support forum - View the full discussion
    Please supply more info on what you have done.
    You say that you created a connection to the database. How did you make the connection and to what database? What did you do to execute the connection?
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6511832#6511832
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Dreamweaver support forum by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Failed to open the connection - database vendor code 17

    I'm upgrading a VB.net Windows Forms application from 1.1 to 4.0.  In the reporting form, the list of reports you can choose are pulled from a folder where the .rpt files reside.  Once the user chooses a report and executes it, vb code populates the current database connection information and displays the report in the report viewer control.
    The following things are true:
    - Version 1.1 works on my systems and my customers systems
    - The code has not been changed, except that it now targets .Net 4.0 instead of 1.1
    - The exact same .rpt files are being used
    - Version 4.0 connects to the same database my customer is using, and I can run the reports just fine from here.
    - Version 4.0 is able to connect to the database just fine from my customers systems (using the same connection information provided to the report)
    - My customer installed this:  http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_2.zip
    The only problem is that my customer encounters this error when trying to run any report from his systems:
    Failed to open the connection.
    Details:  Database Vendor Code: 17
    Failed to open the connection.
    Orders.BOL.TaskDetail {393C9017-0ED1-4E1E-8824-E222F4B9D14C}.rpt
    Details:  Database Vendor Code: 17
    I read all of the articles I could find, and they either don't describe this exact situation, or there is insufficient information for troubleshooting this issue.  Are there steps that I've missed to make Crystal Reports for VS2010 work on my customer's systems?
    Your help is appreciated,
    Mark

    Hi Mark,
    More information required -
    - Does this happen with all reports or few?
    - What is the connection type used for the report to connect to the database (OLEDB,ODBC etc)
    - Are you changing the database at runtime?
    few things you could check
    - Check if the database is accaessible from the client machine with proper permissions / rights.
    - If its an ODBC connection check if the DSN with same name is created on the client machine.
    - Check the driver / provided used by the report to connect to the DB, verify that the same is installed on the client machine. (SQL NAtive client, SQL Server etc)
    Also take a look at below articles discussing the simillar issue.
    [CR for VS2010: Failed to Open Connection [Database Vendor Code: 17 ]|CR for VS2010: Failed to Open Connection [Database Vendor Code: 17 ]]
    [1474461 - Unknown Database Connector Error when connecting to a Dataset in a VS .NET application |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433373334333433363331%7D.do]
    Hope this helps,
    - Bhushan.

  • How to delete a record in a connected database?

    We are encountering a problem using the delete function for removing a record in a connected database table. The database is an excel-file and we are able to add a new record, update existing records but not delete records. We are using the following script in FormCalc since I read that the function does not work in JavaScript:
    $sourceSet.DataConnection.delete()
    The error message returned is:
    "Deleting data in a linked table is not supported by this ISAM."
    We are also curious to know how we can reload the connection so that for example a drop-down list containing values from each record in the table is updated automatically when we insert a new record.
    Thanks!
    Annika

    You also asked:<br /><br /><font color="grey"><i>We are also curious to know how we can reload the connection so that for example a drop-down list containing values from each record in the table is updated automatically when we insert a new record.</i></font><br /><br />You should be able to achieve this quite easily using the Data Drop Down List from the Library palette's Custom tab. This object has a pre-defined Initialize script which populates the list with items from a data connection you specify.<br /><br />While the object is pre-configured to load items from the data connection only upon initialization (which only occurs when the form is loaded and after a data merge), you could move the script into a Script Object function and call it whenever you insert a new record (just after the statement which inserts the record).<br /><br />This is the script from the Initialize event of the Data Drop Down list put into a Script Object function called LoadDropDownList which takes the drop down list to populate using the data connection as a parameter:<br /><pre>function LoadDropDownList(oDropDownList)<br />{<br />     /*     This dropdown list object will populate two columns with data from a data connection.<br />     <br />          sDataConnectionName - name of the data connection to get the data from.  Note the data connection will appear in the Data View.<br />          sColHiddenValue      - this is the hidden value column of the dropdown.  Specify the table column name used for populating.<br />          sColDisplayText          - this is the display text column of the dropdown.  Specify the table column name used for populating.<br />     <br />          These variables must be assigned for this script to run correctly.  Replace <value> with the correct value.<br />     */     <br />     <br />     var sDataConnectionName = "&lt;value&gt;"; //     example - var sDataConnectionName = "MyDataConnection";<br />     var sColHiddenValue = "&lt;value&gt;"; //     example - var sColHiddenValue = "MyIndexValue";<br />     var sColDisplayText = "&lt;value&gt;"; //     example - var sColDisplayText = "MyDescription"<br />     <br />     //     Search for sourceSet node which matchs the DataConnection name<br />     var nIndex = 0;<br />     while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)<br />     {<br />          nIndex++;<br />     }<br />     <br />     var oDB = xfa.sourceSet.nodes.item(nIndex);<br />     oDB.open();<br />     oDB.first();<br />     <br />     //     Search node with the class name "command"<br />     var nDBIndex = 0;<br />     while(oDB.nodes.item(nDBIndex).className != "command")<br />     {<br />          nDBIndex++;<br />     }<br />     <br />     //     Backup the original settings before assigning BOF and EOF to stay<br />     var sBOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");<br />     var sEOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");<br />     <br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF", "bofAction");<br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF", "eofAction");<br />     <br />     //     Clear the list first so that we replace any existing items<br />     <b>oDropDownList</b>.clearItems();<br />     <br />     //     Search for the record node with the matching Data Connection name<br />     nIndex = 0;<br />     while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)<br />     {<br />          nIndex++;<br />     }<br />     var oRecord = xfa.record.nodes.item(nIndex);<br />     <br />     //     Find the value node<br />     var oValueNode = null;<br />     var oTextNode = null;<br />     for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)<br><br />     {<br><br />          if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)<br><br />          {<br><br />               oValueNode = oRecord.nodes.item(nColIndex);<br><br />          }<br><br />          else if(oRecord.nodes.item(nColIndex).name == sColDisplayText)<br><br />          {<br><br />               oTextNode = oRecord.nodes.item(nColIndex);<br><br />          }<br><br />     }<br />     <br />     while(!oDB.isEOF())<br />     {<br />          <b>oDropDownList</b>.addItem(oTextNode.value, oValueNode.value);<br />               oDB.next();<br />     }<br />     <br />     //     Restore the original settings<br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup, "bofAction");<br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup, "eofAction");<br />     <br />     //     Close connection<br />     oDB.close();<br />}</pre><br />The required modifications to the original script are in bold.<br /><br />The easiest way to create the Script Object is to right-click on the top-level form object ("form1" by default) in the Hierarchy palette and select the <i>Insert Script Object</i> option. This will insert an un-named Script Object which you should then rename to something meaningful like, "ScriptObject". Once you've done this, you can call the function from any event on any object on your form with the following JavaScript:<br /><pre>ScriptObject.LoadDropDownList(&lt;SOM expression for drop down list&gt;);</pre><br />If you were calling this function on an "add record" button's Click event, the drop down list was named "DropDown" and both objects were in the same subform, you would do this:<br /><pre>ScriptObject.LoadDropDownList(DropDown);</pre><br />Stefan<br />Adobe Systems

  • Connect database using ext javascript or applescipt in indesign

    Hi,
    I need to connect oracle database using extended javascript or apple script in indesign. Can somebody help by giving any suggestion. Or is there any possibility to connect database using the two scripting methods.
    It  is really urgent.
    Thanks
    Karthik B

    ExtendScript has a Socket object prototype you can use to e.g. connect to the internet. Calling a web service would probably be more elegant than addressing the database directly. Socket is fairly low-level, though. If you need something easier, you could always try out http://extendables.org/docs/packages/http/doc/readme.html
    I seem to recall some InDesign plug-ins you could buy that allow you to connect to a database directly, but you'd have to google that yourself.

  • How to Connect Database Using Script?

    Hi all,
                    Am using Adobe InDesign CS3. Is there any way to connect database from Adobe InDesign CS3 Scripting (Javascript)? Thanks in advance.
    Regards,
    Mohan

    I don't know javascript so I can't help with that part.
    The system plug in you need is from Actual Technologies : http://www.actualtechnologies.com/ The setup for that is detailed in their instructions. You will probably want to set it up for system-wide access, not by user. I found system-wide access more reliable, fwiw.
    For Applescript I send a command through the Terminal/command line that returns the data from the query.
    Here is Applescript:
    set query to "YOUR DB QUERY"
    set results to (do shell script "echo \"" & query & "\" | iodbctest \"dsn=" & dsn & ";uid=" & uid & ";pwd=" & pwd & "\" | awk '{ if (match($0,\"SQL>\")) {k++; if (k==1) next; if (k==2) exit; } if (k==1) print; }'")
    You can probably do something similar in Javascript. You'll have to parse out the text data returned then. I think there may be plug-ins for InDesign that can directly connect to a database (?). Or some plug-ins like inData can take their data passed from a script as well.
    Chris

  • SFTP connection issue with Dreamweaver 2014

    I have a very weird SFTP connection issue with Dreamweaver CC (2014). I am on a Mac running 10.9.4 and have no problem connecting to my server through SFTP with Dreamweaver CS 6. However, using the exact same settings on CC (2014), I get the following error: "An FTP error occurred - cannot make connection to host. Your login or password is incorrect. Please check your connection information".
    I am truly at a loss here. Command line connection works without problems.
    Any thoughts?

    Hi there,
    Try after rebooting your system or in a different user account on MAC.
    Is there any limit with number of login sessions with your SFTP?
    Could you check with Filezila or similar FTP client and connect to your site, see if you get any error there?
    Thanks.

  • Not able to connect database from another os user using externally?

    Hi,
    I want to connect database from another os user. i am able to connect database from oracle externally. but not able to connect different OS user.
    As ORACLE User:
    [oracle@test1 admin]$ sqlplus /
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Jan 16 19:41:57 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    Non ORACLE user:
    [sample@test1 ~]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0.2/
    [sample@test1 ~]$ export ORACLE_SID=rman
    [sample@test1 ~]$ export PATH=$ORACLE_HOME/bin:$PATH
    [sample@test1 ~]$ sqlplus /
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Jan 16 19:37:42 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    Enter user-name:
    Thanks

    You didn't install Oracle correctly, especially you didn't run the root.sh and rootpre.sh scripts.
    If you would have read the error message at all, and researched it, you would have known this.
    Regrettably however you decided to ignore Forums Etiquette and to abuse this forum with Yet Another Doc Question.
    Sybrand Bakker
    Senior Oracle DBA

  • How to connect database using coding in trigger in forms

    Oracle forms6i
    Hai All
    Is there any possiblity to connect database using coding.
    For example when we open a form and we use some button and write some coding and when we execute a small will appear and we give username,connection identifier and database name.
    Is it any possible there when we create a button and in that button we write coding our database name,connectionid and user and when we exe it will internally connect database Pls tell me..
    Regards
    Srikkanth.M

    use LOGON Procedure
    PROCEDURE LOGON
      (username  VARCHAR2,
       password  VARCHAR2);
    logon('scott','tiger@orcl');Mr.Srikkanth.M if u dont close ur old questions dont expect others to answer ur question everytime......so plz remember if u think the person's answer is helpful or correct mark it accordingly
    Thanks :)
    Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

Maybe you are looking for

  • Other good resources for BI Publisher, Q&A and information Sharing!

    Do you have a question about BI Publisher (install, setup, usage, etc.) or need a clarification about a BI Publisher note, bug, patch or certification? Take a look at the BI Publisher community: https://communities.oracle.com/portal/server.pt/communi

  • Has anyone tried Displayport to VGA adaptor for T410S?

    I found Displayport to VGA cable for T410S on Lenovo site. Lenovo DisplayPort to VGA Monitor Cable 57Y4393 I just wonder if DP can directly transfer to analog port? Has anyone tried this? Solved! Go to Solution.

  • Can anyone help with a solution???

    Can someone please help? My problem is that I bought my iPad mini just last week and now it's freezing half way through what I'm doing and it's also not saving any of my photos? Can anyone help with a solution???

  • Idoc Archiving

    hi,    In the production for writing idocs to archive file , a variant is scheduled every monday, which has mesgtyp and last changed date. mesgtyp is BOMMAT    the issue is they say that the job is skipping records...can anybody suggest how to check

  • GLBP with vPC configuration acceptable?

    Hello, I'm reposting this discussion here. I have designed GLBP with vPC configured in a pair of N7K switches. But in Cisco documentation, the best practice configuration uses HSRP in vPC environment. Customer doesn't feel comfortable with GLBP since