[Help] Regarding database connection!

Hi , i am new to dreamweaver, I have started working on a website, the designing part is completed. I am now trying to connect database through dreamweaver to mysql. As i said I am new to this, I have created four pages, all of which are in .html format. When i  try to connect to a database, it needs me o choose from .php or dotnet.
So, here is my question do I need to shift my work to dotnet or php? As i dont know php so i am taking dotnet
2ndly how can I connect to a database? All schemas are defined! Which files do i need to change if i want a registration page to connect to database??
Please Help!

If you want to connect your website to a database, it's advisable to change the filename extension of all pages from .html to the server-side technology of your choice. Before making your choice, you might find the following article helpful: Which server-side technology should I choose?
If you decide on .NET, you should be aware that Dreamweaver has no support for it.
Dreamweaver has extensive support for PHP, but I wouldn't recommend using Dreamweaver's built-in server behaviors to connect to a database. They rely on outdated code, and are not recommended for use in a live website.
If you want to set up Dreamweaver to work with PHP, instructions for doing so are in the following article: http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html.

Similar Messages

  • Need help regarding database connection

    hello
    iam new to j2ee i am using Jsp,Ejb and Jboss server i need to connect to the oracle database with the above configuration wher can i find the tutorials can anybody help me please

    a word of advice - if you're new to jsp, jboss, and ejbs, and obviously know nothing about jdbc either, this isn't the way to learn it.
    start with the jdbc tutorial and see if you can get a single java class to connect to a database and execute some sql. then work up from there.
    what you're doing is something known as "biting off more than you can chew".
    %

  • How to read a passward protected excel file with the help of database connectivity tool kit

    hi, i was reading an excel file with the help of database connectivity tool kit in labview 8.0
    i made tabels in the excel file nand made odbc connection and specified the workbbok name.
    now my problem is how to read the same file if i specife a pasword to that excel file ?

    Hi,
    Check out this thread about opening a password-protected Excel file using ActiveX. This should take care of it for you!
    Amanda Howard
    Americas Services and Support Recruiting Manager
    National Instruments

  • Help with Database Connected LiveCycle ES4 form

    Hello and thanks for taking the time to read this question, I hope you can help!
    I have a LiveCycle ES 4 form connected to an excel database.  The form has buttons to "Add", "Update" or "Find" a record.  These buttons all work correctly EXCEPT when the server drive that has the Excel file is not available.  In this case I wanted to add code the "Add" button informing the user that there is an error.  I tried adding a try/catch block before the SQL statement that inserts a record into excel but even when I purposely make the Excel file unavailable the try/catch block doesn't seem to work.  The javascript console will show an error but try/catch doesn't seem to trigger.  If I had a javascript syntax error within the try/catch block, it works as expected, but with the database connected form, it appears the try/catch block does not trigger based on errors generated as a result of the database file having an issue.  In this case, the console just shows a "GeneralError: Operation failed." message.  Why doesn't the try/catch block trigger since there is an error as stated on the console?  Is there a work around?  Thanks again for your help!!

    Hello and thanks for taking the time to read this question, I hope you can help!
    I have a LiveCycle ES 4 form connected to an excel database.  The form has buttons to "Add", "Update" or "Find" a record.  These buttons all work correctly EXCEPT when the server drive that has the Excel file is not available.  In this case I wanted to add code the "Add" button informing the user that there is an error.  I tried adding a try/catch block before the SQL statement that inserts a record into excel but even when I purposely make the Excel file unavailable the try/catch block doesn't seem to work.  The javascript console will show an error but try/catch doesn't seem to trigger.  If I had a javascript syntax error within the try/catch block, it works as expected, but with the database connected form, it appears the try/catch block does not trigger based on errors generated as a result of the database file having an issue.  In this case, the console just shows a "GeneralError: Operation failed." message.  Why doesn't the try/catch block trigger since there is an error as stated on the console?  Is there a work around?  Thanks again for your help!!

  • HELP IN DATABASE CONNECTIVITY IN A SERVLET`

    HI there,
    I have some issues in an application. I have a servlet which is called Servlet1.class. I have deployed this in my tomcat webapps folder. There is a stand alone application called MailAgent.class which pools into a mail box and retrieves the messages and converts them as HTTP messages. Then the MailAgent.class sends the HTTP message as multipart post (email message) to the servlet. In the servlet I am trying to establish a database connection with the JDBC driver from third party vendor. I am unable to get the driver class when I establish the connection with the database. Is there any issues with servlet and database access. I am able to connect if I run as a stand alone application.
    Any help would be greatly appreciated.
    Thanks
    John

    There shouldn't be any .class file in your webapps folder. I hope you mean that you created a subdirectory under webapps, with a WEB-INF under that and /classes and /lib under that. Your servlet .class file and its package directory structure belong under webapps/yourApp/WEB-INF/classes, right?
    You can create database connections in a servlet, although I agree with the previous poster that you'd be better off putting database code into objects that you could test off-line, without the servlet.
    You've got to have the JDBC driver JARs in the webapps/yourApp/WEB-INF/lib directory, for starters.
    If you get really adventurous you can create a pooled JNDI data source, but maybe that's another day's work. Get the basic connection working first.

  • Need design issue help regarding database access..

    I have an web application running on tomcat that will have access to a database connection pool. I have found a free java api that provides connection pooling. The code i will be using is:
    ConnectionPool pool = new ConnectionPool("local",
         10,
         30,
         180000, // milliseconds
         url,
         "b_lightyear",
         "BeyondInfinity");
    pool.getConnection();
    I need to put the above code somewhere where all my beans and classes can access it easily. I thought i would create a static class called DBConnector and have a getConnection() method to return a connection from the pool. However i would want the DBConnector class to be initialised on tomcat startup so that all the database pool can be initialised then. I dont see how i can do this? I know i can make a servlet initialised on tomcat startup but if i put the above code in a servlet how will i access it in my beans and java classes. I wont have the request, response objects available.
    Discuss.

    You should not need to 'control' access to the pool via a static method. The pool itself is probably implemented as a Singleton anyway. BTW, what pool are you using? DBCP from Jakarta is popular, stable and free.
    You use the Servlet's init() method for startup tasks and its destroy() method for clean-up tasks. Initialize your pool in the init() method of your Servlet. Simple. Just make sure you don't declare instance variables in your Servlet, can lead to thread-safety issues.
    BTW, love the Toy Story allusion! :^)
    - Saish

  • HELP----Inactive database connections.

    I have just deployed a JDeveloper BC4J application and to my surprise, when a user enters a module, the database connections are all Inactive in the database. All my users have their own user ids. I am using Jdeveloper 9.0.3.4 (build 1247) and 10gAS on the middle tier. After running debug options, I can't see where the connection is being closed. Has anyone experienced this? I have logged a TAR and after 4 days, support is getting nowhere.
    Brett

    hi
    did you get an answer?
    if so could you post it?
    thanks
    Vitor

  • Question regarding Database Connection.

    Normally, after we open a database connection, we could use the Connection.close() method to close and return database connection back to a connection pool.
    What would happen if I nullify the connection without using the close() method to close a database connection?
    Would the database connection automatically close after I nullify it?
    If not, how the connection going to return back to the connection pool?

    The connection will close/be released automatically when the garbage collector runs, but you should NEVER rely on that because you never know when the GC will run or if it will collect all objects or only part of them. Best approach is to always have a finally block where you close/release the connection.
    Alin.

  • Need help urgent!! regarding Database connection failure

    Hi Experts,
    when i try to login sqlplus...i came across with this error 'TNS adaptor error'
    as i try to restart the services i dont have the sufficient privilages to start.
    Mean while, i have another database in my another system. i know the port number ,host name and all...
    can i connect from one system to another using the port number,host name..
    If So, can any one help me pls

    Hi Bhargav,
    check $ORACLE_HOME $PATH and $ORACLE_SID is correct?
    what OS? windows need service privileges, contact admin.
    can i connect from one system to another using the port number,host name..yes, and login info.
    --sgc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Help regarding issue connecting to DB through shell script

    Hi,
    I have a Oracle 8.1.7 Database running on a AIX box. I am trying to truncate one table from within the shell script using here documents.
    Code section of my script -
    succ=`sqlplus -s ${USR} << EOF
    whenever sqlerror exit sql.sqlcode
    set feedback on
    Truncate table abc.xyz;
    exit;
    EOF`
    USR has been set as /. We have ops$ users in the database. So when I run this script using my id it runs fine. The problem seems to be coming when this runs as part of the batch job which runs under a different osuser. The error is -
    + + sqlplus -s /
    + 0< /tmp/sh164108.8
    succ=ERROR:
    ORA-01017: invalid username/password; logon denied
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}] | [INTERNAL]
    where <logon> ::= <username>[<password>][@<connect_string>] | /
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}] | [INTERNAL]
    where <logon> ::= <username>[<password>][@<connect_string>] | /
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    I am not sure what is going wrong. I have tried and googled for the issue and it seems that the issue is coming because the osuser under which the job runs may not be setup to use "sqlplus -s /" ? Any help appreciated.
    Regards,
    Saurabh

    This is the forum for Oracle's SQL Developer tool, not for general SQL and PL/SQL questions.Questions like this will get a better response in the PL/SQL forum.
    Having said that, it looks likely that the other user doesn't have an ops$ account.

  • Please help with database connection issue

    Hi,
    I've created a few connections and pages with a few recodsets on my local computer and am connecting fine with the database. I've uploaded the database via phpmyadmin onto a remote server and uploaded all my pages to the website and have changed the database info, user name and password in the connections folder but when I try to load the file I get a message "no database selected". I've tried various things but no luck. I'm selecting the database name but something is missing. Any help would be appreciated.
    Derek

    A bit more info: Here is the connection script as its defined in Dreamweaver: <?php
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_karen_product = "localhost";
    $database_karen_product = "karen";
    $username_karen_product = "root";
    $password_karen_product = "root";
    $karen_product = mysql_pconnect($hostname_karen_product, $username_karen_product, $password_karen_product) or trigger_error(mysql_error(),E_USER_ERROR);
    ?>
    Where is says mysql_pconnect, I changed the $hostname_karen_product etc to 'localhost', 'username', 'the password for the database')
    Do i need to do something different at $database_karen_product?
    I'm basically new at this and confused as to how to alter this connection script.
    Thanks
    Derek

  • Help with database connection

    ok I am trying to use dreamweaver's database function to
    connect to a mysql database, i fill in the info and it gives me the
    following error:
    "an unidentified error has occurred"
    I know all the info i am putting in is correct as I am copy
    and pasting it directly out of my connection properties in navicat
    mysql editor which can connect to the database fine
    i tried connecting to multiple databases on multiple servers
    and every single one returned the exact same error
    I am using Dreamweaver CS3 for Mac OSx
    thx for any help
    -Ryan

    Have you gone under the Application folder and clicked on the
    plus (+) sign and created the connection to the database.
    Also, do you have username and password on the database? If
    so, you'll have to provide this information
    I don't use MAC or PHP a great deal. So my help can be rather
    limited. I'm just thinking about connection strings
    What web server are you using? MAke sure it's running and set
    up correctly. Test the server first and see if it's working. If so
    see what connections string Dreamweaver is providing. I know Apache
    had a few bugs with various version just Windows has had in the
    past, not sure how these work with OSX

  • Please Help! Database connection

    Hey guys,
    I know this may seen very simple to some of you and I hope
    that you can help me with all of your knowledge. I am trying to set
    up a database for the first time. I just want to have a login page
    on my site and I have no idea how to get started. I pretty much
    need step by step instructions if someone could help. So far my
    hosting provider told me some things but I still get an error
    message. I was told the best way to connect to a ms sql database is
    through a connection string. I tried that and it told me that my
    name could not have any " - " in it. Then I tried getting rid of it
    and it keeps giving me errors. If someone could please just point
    me in the right direction to get started with this then I would be
    forever greatful. Thank you so much for any help you can give me.
    Jeremy

    here is a example of a connection string
    "Driver={Microsoft Access Driver (*.mdb)};
    DBQ=D:\Webmolder\ajack\training\db\assessment.mdb"

  • Need help with database connection and trasaction!

    Hi, I'm trying to load data from a huge report to DB2. My old way of doing this is: 1. using DriverManger.getConnection to get a connection.
    2. Then set autoCommit to false.
    3. Keep the connection open.....
    4. con.commit once I reach a section, let's say around 5000 records per section.
    5. Close the connection once I finish loading, (Finally block)
    I'm still new in the java world and kind of concern of the way of what I'm doing. Then I did some research. Perhaps using javax.sql.DataSource is a better approach. But I couldn't use it in WSAD. Do I need do some configuration? I heard it's in j2ee 1.4 . Is that the reason I couldn't use it?
    And.......I tried to use DAO pattern to talk with DB. By that way, I have to open and close connection everytime I invoke the dao method. Then how can I control the transaction? Because I don't want to insert each record data in to the table right away. I want to do the commit once I get all records for one section. No idea how can I achieve this.
    Any suggestion will be really appreciated!!!

    I'm still new in the java world and kind of concern
    of the way of what I'm doing. Then I did some
    research. Perhaps using javax.sql.DataSource is a
    better approach. But I couldn't use it in WSAD. Do I
    need do some configuration? I heard it's in j2ee 1.4
    . Is that the reason I couldn't use it?What you need to do is configure a Connection datasource. WSAD has that. You just need to go through the documentation and find out. I never worked on it.
    And.......I tried to use DAO pattern to talk with DB.
    By that way, I have to open and close connection
    everytime I invoke the dao method. Then how can I
    control the transaction? Because I don't want to
    insert each record data in to the table right away. I
    want to do the commit once I get all records for one
    section. No idea how can I achieve this.Since you want to simply insert multiple records, you might want to insert them in a batch. This is available in PreparedStatements.
    $ Carol.

  • Need Help with Database Connection

    Hello,
    i have the order to create a Dynamic pfd with Adobe Live Cycle Designer which takes some source information from a Microsoft Access Database.
    I am absolutely new in Adobe Live Cycle Designer, but I have experiences in VBA, C++ and Delphi...
    Thanks for Help

    Ok, got it...

Maybe you are looking for

  • How can i share my pc hard drive with my mbp using time capsule?

    i have created a wireless network (pc, cable modem internet, and my mbp) with my time capsule as the router. i now want to be able to "see" my pc's hard drive wirelessly from my mbp. is this possible? thanks in advance. TC

  • Viewport Sized Text Help

    So I'm making my first responsive theme for a client through my school as a class project and I'm having some trouble. I have msot everything figured out except for the auto-resizing text and am kinda of stumped. I found this: http://css-tricks.com/v

  • HOW TO DO POSITIVE PAY IN F110

    When the customer is the same as vendor, and the payable is more then the receivable can we do a pmt run to make the payment for the difference of the payable and receivale amount. If yes, what are the parameters, and other information to be filled i

  • RAM Instalation

    I currently have a MacBook Pro that runs on 512MB of RAM (One of the first builds) that only supports up to 2GBs. I'm a graphic designer (still in school) and use the entire Adobe suite. Not at the same time, ofcourse. Anyways, don't ask me how I man

  • Dashboards help needed very urgently

    hi experts i have a page which displays like dril down table which has information of customers, beside the under that table i hve round diagrams which has business orinet things around that lot of object are there. for example it looks sun in the ce