Jump to content

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!!!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.