SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2009
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP + Javascript + MySQL

    I was wondering if it was possible to combine the 3 meaning. Could I have a basic html button which accesses javascript which then asks PHP to update the mysql Database without having to refresh the page to do so? I don't know if this is possible?

    My main goal is basically to update the database without having to refresh the page.

  2. #2
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    9,097
    Mentioned
    153 Post(s)
    Tagged
    2 Thread(s)
    Take a look at AJAX

    It stands for Asynchronous Javascript and XML
    Rémon - Hosting Advisor

    SitePoint forums will switch to Discourse soon! Make sure you're ready for it!

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy

  3. #3
    SitePoint Zealot
    Join Date
    Jul 2010
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Depends of how complex is your plan for the applications. Anyway to reduce amount of js code you could use a js library like jQuery or prototype etc. This way tasks like ajax are accomplished much faster (time to wrote the code)


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
  •