PHP / Website Question

Superwormy

Golden Member
Feb 7, 2001
1,637
0
0
Ok, two questions, first off, is there a way to have PHP query a database on a regular interval, so like say have it query one value from the database every 3 seconds or something?

Secondly, is there a way to just refresh PART of an HTML page, so you could potentially refresh jsut teh text on the page and not have to refresh all the graphics and stuff around it too?
 

joinT

Lifer
Jan 19, 2001
11,172
0
0
To refresh part of a page - i think you would have to make that part it's own page & then call it (insert) that page into the section of the viewable page you want.

I think you could manage a query every 3 secs (may i ask WHY? it's gonna slow down ur server a LOT) if you created the query inside a seperate page, with a refresh every 3 secs. meta tag @ the top.