Jump to content

saiko

Members
  • Posts

    37
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

saiko's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. valtido you say "lol" to much. there is no need for it, its annoying.
  2. [quote author=ProjectFear link=topic=124595.msg516611#msg516611 date=1170114681] well see how you open up your echo with ". if you were to use those again in the echo then php thinks your closing the line. So to stop that you can put a \ in front of the ". Or you could do it like this: [code]echo "<tr bgcolor='{$row_color}'><td>";[/code] but it all comes down to what you want to do. :) [/quote] that is spot on PF :)... i tend to always use " " instead of using ' ' ..
  3. you could try replacing <?php $_SESSION['message'] ?> with <?php echo $_SESSION['message']; ?> do the same for the rest of them
  4. add <? ob_start(); then at the end ob_end_flush(); ?>
  5. put ob_start(); at the start of ur page then ob_end_flush(); at the end :)
  6. well i see wat ur sayin as... xxx access's restricted.php .. then u have a login form on restricted.php if the session is not set .. but if it is set then it displays the content ? or xxx access's restricted.php .. then it redirects to a login page if the session is not set .. but if it is set then it displays the content ?
  7. if used the right way they can be very useful. im currently learning them and there aight!
  8. *bump* ok another question. to update the database and add gold would i make a cron job or make a php script to do it.? if its a cron job can i please have some guidence
  9. yer i want it so when the user accesses the page it stores the variable to the hidden form etc. then it updates the variable so then when the counter goes again it doesnt start from the original value. or could i run the timer so it doenst have to do this. this is for a game i am making. my aim is for the timer to countdown to 0:00 then when it hits that it updates the databse and adds values like gold etc. then it resets to 5:00 and counts back down. i had that bit but when they accessed the page it went back to the original minute and second variable values. so could i run this in another file or sumthin *confused* note i have seen another site do this. if u access it or refresh it, its timer will keep going or be like the rite time. so lets say u refresh and it takes to seconds then the timer will be eg. 14:14 then 14:12.
  10. thankyou im currently putting it into my script. but one thing is how would i make it so it does the updating of the counter variable without having to submit the form ?
  11. thanx its like you cleaned my spark plugs and my brain can start again :P should of thought of this earlier. thanx. ill go see if i can do it edit: ive managed to do the updating db but how would i go about making the javascript variable update to the new seconds variable when refreshed? would i update the db to the time or a txt file or update some javascript variables? how could i get the javascript variable into php? if you cant understand me and u have msn add me: saiko@final-designs.com
  12. i would also like to know how to update a database after that specific time. so if the countdown is from 5 minutes to 0 minutes then when it hits zero it updates the database and the timer resets.
  13. riteo. i have made a javascript countdown timer that resets after 5 minutes. now there is a variable seconds for seconds and minutes for minutes which are originally and globally set. the thing is that when u refresh the time goes back to the original time i want it to goto the countdown timers last time. is there a way to do this in php ? or in javascript?
×
×
  • 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.