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 3346998
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:22:11+00:00 2026-05-18T01:22:11+00:00

I have tried a very simple example of PHP MySQL Ajax following the example

  • 0

I have tried a very simple example of PHP MySQL Ajax following the example –

http://www.tutorialspoint.com/ajax/ajax_in_action.htm

I created two files putting these in a same folder and uploaded it to the server.I have also checked the connection with DB from the php file. But I don’t understand why the html file does not bring any data from the the database. What’s wrong with that. The example i followed can be found here.

http://aiworker2.usask.ca/age/ajax.html
http://aiworker2.usask.ca/age/ajax-example.php

I’m very new in AJAX and really don’t understand what’s going on.
Any sort of help will be appreciated.

  • 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-18T01:22:12+00:00Added an answer on May 18, 2026 at 1:22 am

    My 2 cents: First of all, try a simpler Ajax request to get yourself used to the mechanics of the thing.

    All you have to do on the PHP side is echo out some data. For example, you could have your ajax open “test.php”, then have “test.php” look like this:

    <?php echo "working"; ?>
    

    Then, just alert yourRequest.responseText (the response text property) and it should say “working”.

    Once you’ve got this moving smoothly, you can modify the PHP file to make a MySQL request.

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

Sidebar

Related Questions

I have a very simple test script: <?php $DSN = "mysql:host=db.example.edu;port=3306;dbname=search_data"; try { $DB
I have a simple file XML like below: <brandName type=http://example.com/codes/bmw# abbrev=BMW value=BMW />BMW</brandName> <maxspeed>
My problem in fairly simple. I have a login system constructed using php, mysql
I am very interested in streaming data for web-applications. I have tried out some
I have a DLL that I want to profile.. I tried to use Very
I have tried the following two statements: SELECT col FROM db.tbl WHERE col (LIKE
This should be a very simple rails question. I have a variable like the
I have a very simple question. I'd like to use a where clause after
I have a very simple problem regarding plot settings. I would like to have
I have a very simple user model. When I first created it, it had

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.