SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2000
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,

    I am currently using mysql to power my site.
    If possible, would you please show me a simple java code or javascript that used to
    interact with mysql server.
    or a couple of recommended links about this.

    Thank You


  2. #2
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You cannot use MySQL databases with Javascript (client-side) because it is strictly on the client's browser, and if they could access the DB then there would be a potential security problem.

    I don't know about using Java. Client-side Java applets can't because they are client-side as I explained in the above paragraph.

    Both Java and Javascript can be server-side, though.

  3. #3
    SitePoint Evangelist
    Join Date
    May 2000
    Location
    Canada
    Posts
    533
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ACTUALLY ....

    java applets can interact with irc servers.. or telnet servers, there should be no problem interacting with an http server(running scripts) which interact with the database .. since most mySQL database servers wont allow remote connections ... OR, if they do.. have the java applet interact directly with the server..

    its a thought, I dont support or use java..

    --------------------
    Kryogen WebHosting - feel the power of php4

  4. #4
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Your best bet, MyPHP3, would be to use PHP to interact with your database. Your user name suggests you're already doing this, however. Can you explain why you would like to use Java?


    ------------------
    -Kevin Yank.
    http://www.SitePoint.com/
    Helping Small Business Grow Online!

  5. #5
    SitePoint Member
    Join Date
    Jun 2000
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ----This is a a reply from MYPHP3---

    The reason I choose Java is want to create
    a real time updated data display application.

    ..mmmmm.. Some things like java chat application--> a pipe being used to trasmit
    or updated latest infomation. or simply put it as I want to see data being updated in my browser as anyone update it at the same time.


    Thanks for your supports




Bookmarks

Posting Permissions

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