Jump to content

Anyway substitute for onLoad() javascript method in PHP


ManOnScooter

Recommended Posts

Hi,

 

I have this unique problem, ok, lemme get into the history..

 

When any user connected to the mainpage(index.php) page of the application, he should should see all the number of users logged on to the application and login-IDs.

 

Now I understand I cant have the javascript onLoad function to call any PHP method, so what can i do to make the database connection and read data from the database and display even before any action is taken. i.e. any onLoad or similar function??

 

So the objective here is as follows..

As soon as the user is on the mainpage(index.php) the php page should read data from database and display on the index.php page.

 

Any suggestion??

 

Regards,

Man On Scooter!!

Thorpe,

 

The idea of a simple query to the database would be fine if any action/event was taken on the index.php page. But, here the only event is onLoad() (javascript), no other event.. Only the Page is being loaded..

 

Man On Scooter!!!

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.