#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 1999
    Posts
    9
    Rep Power
    0
    My web hosting provider does not let my use jdbc to connect an applet to mysql.

    I was thinking of a way to get around it and by using php as an interface.

    The applet would run a php script that would in turn dialogate with MYSQL. Does anyboby knows if it is possible and where I could find some help on that.

    Thanks

    Claude
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    1
    Rep Power
    0
    I have never donme this with java but I did do it once with javascript. If you create a page using frames with one frame of height "zero" and the main fram of height "*" (or whatever you like) you can then remotely load a php database query script into that zero height frame and pass your query criteria appended to the URL (i.e. query_page.shtml?criteria1=junk1&criteria2=junk2). That query_page can then load the returned values into <input type="hidden"> fields and you can use either java or javascript to retrieve the values and import them into you applet.
    The benefit is that the user can make changes to the main page that will elicit updates of the currently displayed values without having to wait for a full main page reload. I know it work using javascript but I don't know if you have access to alternate frames and form elements using java. Just a thought. Good luck.
    Robert.
  4. #3
  5. No Profile Picture
    ads
    Guest
    Devshed Newbie (0 - 499 posts)
    Have either of you succeded in getting connected to MySql as mentioned.
    If so let us share the idea.

Similar Threads

  1. Replies: 2
    Last Post: February 16th, 2004, 01:18 PM
  2. Java applets and PHP
    By Vantuykom in forum Java Help
    Replies: 2
    Last Post: February 5th, 2004, 11:20 AM
  3. Java output to text files
    By bdot in forum Java Help
    Replies: 0
    Last Post: February 3rd, 2004, 05:28 PM
  4. php variables in java passing through the url
    By panahi in forum Java Help
    Replies: 0
    Last Post: January 23rd, 2004, 04:50 PM

IMN logo majestic logo threadwatch logo seochat tools logo