Jump to content

[SOLVED] I am new in PHP and AJAX can someone help me to solve my problem???


merck_delmoro

Recommended Posts

I want to create a website that enables a log in user to view all the records into the database but when the authorized user update some records the website that viewing  by the other log in user will automatically updated and can change automatically

Well, you're definetly going to be using PHP and AJAX...

 

If you have no code written yet I'd recommend hitting some tutorials,

  • PHP
  • MySQL
  • jQuery

Then get specific with login scripts, basic cms (a form to update a database). Then attempt this project and come back when you get stuck :)

 

Oh, and by the way, you'll need a javascript timer to execture a call every x seconds to keep checking if the database has changed! (just remember)

Oh, and by the way, you'll need a javascript timer to execture a call every x seconds to keep checking if the database has changed! (just remember)

execture ... :D

 

It sounds like a timer is hard to write,  but it's really just a call to a JavaScript function.

Oh, and by the way, you'll need a javascript timer to execture a call every x seconds to keep checking if the database has changed! (just remember)

execture ... :D

 

It sounds like a timer is hard to write,  but it's really just a call to a JavaScript function.

 

yup, just one simple line;

 

timer = setTimeout('aFunction();',2000);

yup, just one simple line;

 

timer = setTimeout('aFunction();',2000);

Wrong! Well I guess it depends on aFunction(), but care to try again? :D

 

Care to explain to me why that's wrong?

 

That little bit of javascript will call a function called aFunction() every 2 seconds.....

 

I wonder how that's wrong??

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.