Jump to content

tubs2222

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tubs2222's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. tubs2222

    URL

    [!--quoteo(post=355802:date=Mar 16 2006, 10:41 PM:name=keeB)--][div class=\'quotetop\']QUOTE(keeB @ Mar 16 2006, 10:41 PM) [snapback]355802[/snapback][/div][div class=\'quotemain\'][!--quotec--] index.php: [code] <a href="index.php?id=10">click me</a> <?php if ( $_GET['id'] ) {     print "<br><br>You said the ID was $id"; } ?> [/code] [= [/quote] Oh i c... thanks :)
  2. tubs2222

    URL

    how do u make it so that a url turns into this "index.php?id=232"
  3. tubs2222

    URL

    Hey PHPFreak members I have a question reguarding the URL of a page. On some site I see a url like "index.php?id=232" I already know an alternative way of doing this, but i think it would be better if it had the ?id=. Thanks
  4. [!--quoteo(post=355066:date=Mar 14 2006, 04:33 PM:name=keeB)--][div class=\'quotetop\']QUOTE(keeB @ Mar 14 2006, 04:33 PM) [snapback]355066[/snapback][/div][div class=\'quotemain\'][!--quotec--] Store their last accessed time in a database.. and the time at which they can vote again, and every time they access the 'Bid' page, get their data and make sure 180 seconds haven't passed.. You basically have the general idea in the code, you just need to store it for later retrieval. [/quote] Yes, I have already done that. I'll try to explain it better, ok for example lets take this case as an example. The countdown starts when you have placed a bet, this is the 1st round. You can not place a bet for another 180 secs. But the problem is that the person will visit the page again in another 1000 secs. Even though they came backk after 1000 secs the round finishes and the second round begins. What i'm trying to do is if the person doesn't come baq after 180 secs the 2nd round being then the 3rd then the 4h and so on even thought the user is not present.
  5. Hey guys, I've been faced with a problem on my site with a little count down script: [a href=\"http://nationwar.awardspace.com/code.txt\" target=\"_blank\"]Code[/a] btw i'm making a lottery game When the $ml is equal to zero the person can bid again, the code works and everytime, but the time resets only if the user views the page. For example if the user bids then comes baq the next day it will tell them if they won or not eventhough the bidding duration is only 180 secs. But i'm trying to make the counter go on even though the user does not access the page I hope i'm not being confusing, if i am please ask me any question regarding the program. Thank you
  6. [!--quoteo(post=354333:date=Mar 12 2006, 05:43 PM:name=hitman6003)--][div class=\'quotetop\']QUOTE(hitman6003 @ Mar 12 2006, 05:43 PM) [snapback]354333[/snapback][/div][div class=\'quotemain\'][!--quotec--] I think: [code]$tempuser = ${"user$a"};[/code] will work. [/quote] Yes it worked! :) Thank You
  7. Hey HighTek, Thanks for replying I did what you said and now it outputs 12
  8. Hello everyone at Php Freaks I've been having a problem with a little lottery game of mine that i'm making. Here is the code that receieving a error. <? include "usernames.php"; include "numofuserbids.php"; for ($a=1; $a <= $i; $a++) { $tempuser = $user$a; echo "$tempuser"; } In the usernames.php it has in it: <?php $user1 = tubs2222; ?><?php $user2 = abc; ?> and in numofuserbids.php is has in it: <? $i = 2 ?> and finally the error that I recieve is: Parse error: parse error, unexpected T_VARIABLE in /home/www/nationwar.awardspace.com/gamble/testing.php on line 9 what i'm trying to do is print out $user1 and $user 2 Thanks for reading and if you have any further question regarding my program then ask away.
×
×
  • 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.