Results 1 to 2 of 2
  1. #1
    reture is offline Member
    Join Date
    Oct 2011
    Posts
    1
    Rep Power
    0

    Default Need help connecting to database on website!!!!

    Hi there

    I am doing a school project and have decided to make a database which i can store user info and car info (its a car auction program)

    But i am having trouble with the connection to the database... we have been told to use jdbc odbc connection so is there a way to use this method to connect to my database?

    this is my connection code when connecting to the database locally:

    con = DriverManager.getConnection("jdbc:odbc:DRIVER={Mic rosoft Access Driver (*.mdb, *.accdb)};DBQ=CarDealership.accdb");

    i omitted the other code because it is pretty standard code to do this connection.

    But now i want to connect to a database of the same name on this site:

    sites.google.com/site/card3al3rsh1p

    what must i change in my code to be able to connect to the database on the internet????

    please please plssssssss help me really want to get this to work

    thanks and regards

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,742
    Rep Power
    19

    Default Re: Need help connecting to database on website!!!!

    Is that database accessible from the outside world?
    Considering it's an Access one I would expect the answer to be "no".
    Even if it were a MySQL one, exposing your database directly to the web is a Bad Thing. You would normally have some other app in between that hid the database fromn direct access, eg a Java webapp.

Similar Threads

  1. connecting to a database
    By mxb7642 in forum JDBC
    Replies: 5
    Last Post: 09-08-2009, 08:39 AM
  2. connecting to a database
    By kswiss in forum NetBeans
    Replies: 4
    Last Post: 06-25-2009, 06:22 PM
  3. Connecting JSP with database
    By ramachandran in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 05-13-2009, 06:15 AM
  4. Connecting to a database
    By peiceonly in forum New To Java
    Replies: 2
    Last Post: 04-06-2008, 02:28 PM
  5. Connecting to a Website with the default browser
    By Riftwalker in forum Java Applets
    Replies: 4
    Last Post: 12-04-2007, 04:57 PM

Tags for this Thread

Posting Permissions

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