Create a double AJAX/PHP/HTML/MySQL query

I want someone to give me a simple template HTML (including the JavaScript/AJAX) file, a PHP file and the SQL query that will create test tables in MySQL that does the following:

I have a MySQL database that I access using PHP. Basically, I want to have a "switch" in the MySQL database which turns on or off based on a simple SELECT query (e.g. a value in a field in a table). Depending on the value returned (e.g. ON or OFF in a value somewhere in the database), there needs to be some dynamic HTML shown (an HTML form created from a different PHP/MySQL query). If the SELECT gets an "ON" value, then it will show the HTML form including dynamically created values from PHP. If it's "OFF", then the HTML form disappears, and the HTML page is blank. This "switch" needs be checked every two seconds (so the form appears or disappears quickly), but when the switch is "ON", I don't want the actual HTML form (from the second PHP/MySQL query) refreshing every two seconds.

It's like I need two PHP/MySQL queries working together - one every two seconds checking the switch, and the other running a different query which generates the HTML form itself that is shown when the switch is on.

This is what should happen:

1. When the HTML page first loads, the switch should be checked. If the switch is ON, run the PHP SELECT query once that selects some other data from another table in the database and spits out some HTML containing this dynamic data.

2. Keep checking the switch every two seconds, but do not refresh the dynamic HTML form while the switch is still on. I don't want the form flashing or refreshing while someone is trying to use it. Hold the form steady, but keep checking the switch.

3. Continue checking the switch every two seconds.

4. When the switch is finally OFF, make the HTML form disappear so the HTML page goes blank. It is fine if the person hasn't filled in the form - it should disappear anyway.

If you could give me files that show me how to do this using AJAX, I'd be most appreciative.

If you have more questions, just ask.

Evner: AJAX, Javascript, MySQL, PHP

Se mere: create quiz ajax php mysql, create report using php html mysql, php html mysql ajax, php, html, javascript, psd to html, jquery / prototype, ajax css, create upload ajax php, php sanitize mysql query, php html mysql select form, php tabs mysql query, php select form query database, ajax php display mysql, php protect mysql query, php xml mysql saving database, ajax php select mysql, ajax php login mysql, ajax php tree mysql

Om arbejdsgiveren:
( 7 bedømmelser ) Balmain, Australia

Projekt ID: #15011379

35 freelancere byder i gennemsnit $28 på dette job

$54 AUD på 1 dag
(954 bedømmelser)

Hello, I'm a PHP/Drupal/WordPress/Codeigniter/Laravel/Slim/Joomla Framework CERTIFIED EXPERT coder. And have a lot of experience with System admin + Html + Javascript + CSS + API integration Relevant Skills and Experi Flere

$55 AUD på 1 dag
(569 bedømmelser)

Hello there, I am interested and ready to start, lets discuss with details. Relevant Skills and Experience we have 10+ year experience in WEB DESIGNING AND DEVELOPMENT. Please visit our profile [login to view URL] Flere

$30 AUD på 1 dag
(184 bedømmelser)

Hello sir, It will be nice if we have one time discuss to me. BEST THAT I TRY ALWAYS PLEASE HAVE A LOOK Thanks, Poonam Relevant Skills and Experience HTML, CSS, Bootstrap, Flere

$35 AUD på 1 dag
(451 bedømmelser)

[login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] Proposed Milestones $29 AUD - After Co Flere

$29 AUD på 1 dag
(101 bedømmelser)

hello,software developer here having experience of more than 5 years and i would like to work on your project .you can see my reviews and discuss with me.I hope you would like to hire [login to view URL] Relevant Skills and Exp Flere

$25 AUD på 1 dag
(74 bedømmelser)
$30 AUD in 0 dage
(133 bedømmelser)

Dear Client, I've gone through your project description, as per given description we can do this work and we'll fix all your issues. Relevant Skills and Experience We are expertise in php, core php, CMS, HTML5, CSS3, Flere

$50 AUD in 2 dage
(51 bedømmelser)

Hello, Great to see your job. I have 8+ year of experience. Services that we provide: App, Web Design & Dev., Graphic Design, Content Writing, SEO, hosting. Please contact for more details. Sandhya. Relevant Skills Flere

$25 AUD på 1 dag
(69 bedømmelser)

Hello Relevant Skills and Experience please have a look at our portfolio link:- [login to view URL] Proposed Milestones $50 AUD - S

$50 AUD på 1 dag
(39 bedømmelser)
$25 AUD på 1 dag
(30 bedømmelser)

A proposal has not yet been provided

$30 AUD på 1 dag
(22 bedømmelser)

I have more than 9 years of experience in web/mobile development. I have completed many mobile/web applications. We can discuss in detail further. Thanks Stay tuned, I'm still working on this proposal.

$25 AUD på 1 dag
(32 bedømmelser)
$25 AUD på 1 dag
(5 bedømmelser)

Hi, I have gone through the requirements and I can give you the html/ajax and php files which can do this easily using settimeout and json ready to start thanks Relevant Skills and Experience worked extensively with Flere

$10 AUD på 1 dag
(40 bedømmelser)

hi sir can i help you?? Relevant Skills and Experience hi sir can i help you?? Proposed Milestones $25 AUD - hi sir can i help you?? hi sir can i help you??

$25 AUD på 1 dag
(9 bedømmelser)

Hi greetings of the day I am a Experienced PHP Developer based out in Chennai,India. My experience revolves around development of web and mobile applications,Ecommerce websites. Relevant Skills and Experience I believ Flere

$50 AUD på 1 dag
(43 bedømmelser)
$15 AUD på 1 dag
(16 bedømmelser)

Hello sir, - I have a good experience in PHP, photoshop,bootstrap 3, CSS3 and HTML5. Relevant Skills and Experience Our Work [login to view URL] [login to view URL] [login to view URL] http://fla Flere

$25 AUD på 1 dag
(12 bedømmelser)

To submit this offer please use the word "MINGHIE" in the title of your message. Hello, I am Neha, I am Business Analyst, have an amazing Team of around 5 Designers and 15 Developers Relevant Skills and Experience T Flere

$25 AUD på 1 dag
(13 bedømmelser)