Hi I am pulling items from a mysql database generally with php. Some told me if I connect javascript to php code that does that, then can pull it at any timings I want. But what would be the point of that when I can just put a
<meta http-equiv=”refresh” content=”30″> like for 30 seconds in a page or something, to choose the timing?
Also since it really isn’t doing anything different than the javascript to it, since a meta refresh does that same thing.
Also wouldn’t that be a bad idea connecting javascript to the php also, since mysql data must be pulled from a database with php anyway. I was told javascript cannot pull mysql data into a page only php can. Since php code is already in a page anyway, wouldn’t that also be a bad idea because then wouldn’t work for those with browser javascript disabled, if javascript is connect to the php for mysql.
Anyway I don’t know what the point is, can anyone tell me what advantage there is for timing, to connect javascript to php code that pulls items from a mysql database?? Please let me know thanks a lot to you.