Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Frame troubles
08-15-2007, 12:08 AM #1
- Join Date
- Jan 2006
- Thanked 0 Times in 0 Posts
So.. i dont exactly know how to solve my problem, or even what language it should be solved with... it could either be PHP, AJAX, or something im not even aware of lol... so heres the problem..
I have a game, i just overhauled the layout, and now its framed. I know a lot of you dont like frames, but tough, i need them :P now, in my game, turns are used up when you adventure, problem is, the character pane in the frame shows the adventures, and when you adventure in the main pane, you cant see the adventures you lost, or if you lost HP, or whatever... so i need that to refresh when i adventure.. now.. is it possible to have some command in PHP to detect a change in the DB and refresh the page if there is a change? or any other ideas on how I would go about solving this?
Any help would be appreciated..
08-15-2007, 12:15 AM #2
- Join Date
- Jan 2005
- Philadelphia, PA, USA
- Thanked 76 Times in 76 Posts
you could force a meta refresh every minute or something like that...
AJAX, btw, is not a language, but a suite of languages (mainly PHP & JS) working together.
PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.
Don't forget to save everyone time and mark your thread as Resolved :)
"Also note that it is your responsibility to die() if necessary."
DON'T USE THE MYSQL_ EXTENSION