I would like to know a tutorial or some sample code i can look though that uses Ajax to preform the function of displaying records from a sql database on the fly without user intervention.
Say i have 2 records in my database and i have called them onto my page, then another record is added to the database from another user. I want something capable of changing the records i am viewing to now include the new record.
My last attempt at this i just called in the .php file to refresh every 5 seconds but that is not what i want to do and i would like to be able to get ajax working better for the newer projects i am working on.
Say i have 2 records in my database and i have called them onto my page, then another record is added to the database from another user. I want something capable of changing the records i am viewing to now include the new record.
My last attempt at this i just called in the .php file to refresh every 5 seconds but that is not what i want to do and i would like to be able to get ajax working better for the newer projects i am working on.