Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6382707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:33:27+00:00 2026-05-25T02:33:27+00:00

There is a FireFox plugin called greasemonkey with which you can execute some piece

  • 0

There is a FireFox plugin called greasemonkey with which you can execute some piece of JavaScript code on the page you specified. I want to know whether there is a way that I can embed SQL statements (MySQL) in JavaScript. If so, I can extract the information I need and save them to my MySQL database for later use. Is this possible?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:33:28+00:00Added an answer on May 25, 2026 at 2:33 am

    Strictly speaking, you cannot execute MySQL statements in Firefox, although you can in Chrome for the moment.

    In Firefox you can create and use IndexedDB databases — a more supported browser-DB approach (that is actually in the HTML5 spec). This might be enough, depending on your ultimate goal.

    For full, traditional, DB support, you will have to write a web interface…

    1. You can host such an interface on any machine using something like XAMPP. (Or use the language of your choice.)

    2. Send your data from the Greasemonkey script to the web-app, using GM_xmlhttpRequest, like so:

      var myData      = {strVar: 'Hiya!', intVar: 777, etc: 'et cetera'};
      var DataForDB   = JSON.stringify (myData);
      
      GM_xmlhttpRequest ( {
          method:     "POST",
          url:        "http://localhost/YourDir/LogMyData.php",
          data:       DataForDB,
          headers:    {"Content-Type": "application/json"}
      } )
      

    3. A PHP webpage would extract the data like so:

      $myData = json_decode($HTTP_RAW_POST_DATA);
      print_r ($myData);
      
    4. The web page then interacts with mySQL as you see fit, returning any desired values to the GM script.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any firefox addon which can display my asp.net page viewstate size.... Any
I heard there was a Firefox plugin called POST-to-GET but I can't seem to
Is there a firefox plugin which functions as an SVN client? I have checked
Is there a tool/plugin/function for Firefox that'll dump out a memory usage of Javascript
Is there any way I can make Firefox call a JavaScript function in my
Is there a javascript library the can recognize phone numbers in a web page?
I'm trying to debug my form POST code. Is there any firefox plugin so
I´m using the Flash Player Detection Kit. Is there a Firefox add-on, some plugin
Is there any FireFox plugin which acts the same as IE8 developer tools in
I am injecting some html + css into every page from my firefox plugin.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.