
deathlord55
Members-
Posts
167 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by deathlord55
-
Thanks that worked, some things just can't be learned from a website :(. But thats why i try to do weird stuff when i'm learning codes because once i learn where my mistakes are, next time i know where to look for them. I see your point about lots of posts but i think it would actually be better than creating spam topics ^-^ I'm going to continue my learning tommorow.
-
Hello, I would like to keep this thread open to ask questions whenever i get stuck while i'm learning PHP and would really appreciate any help given, since i'm starting out low, my first few questions would probbably be really stupid. I started going through the W3schools PHP tutorials and got to the while loops section, Since it was pretty short i decided to make things a little bit more complicated for myself but in the end i didn't quiet manage to get it to work, would be nice if someone could point to the right direction of what i was doing wrong. What i was trying to do was basicly generate a random number and depending on the value of the number, either increment or decrement another variable which is used in the loop to create a luck based loop which could go on forever if lucky (or unlucky). I know it's not a good idea to do create long loops especcialy ones that totally depend on luck but i just wanted to get it to work and see what happens. This is the code i started with: $i = "2"; srand(time()); $k = (rand()%3); if ("$k =>2") { $i++; } else { $i--; } while ("1<=$i<=9") { echo "The number is ". $i . " "; } This didn't work so i tried to delete the if and try to work myself up so i did this: while ("1<=$i<=9") { echo "The number is ". $i . " "; $i++; } Which only worked with "" marks in but even after it "worked" it listed all the numbers it possibly can, crashing IE :(. I tried changing the condition to ("$i=>1 && $i<=9") But with the same crashing result as the above. I'm trying something impossible or i'm just doing stupid mistakes? Thanks
-
Your demo account doesn't seem to work for me, unless someone else is logged on it already.
-
Re: THIS OR THAT? msn Macdonalds or Burger King?
-
Re: FIRST THOUGH! 2 years after i made this it's still going (lol) team
-
Re: Guess the next poster NOPE deathlord is anyway tears is next
-
Re: Counting (nr game) 1378, so slow. i remember when we did 100-200 counts every 1 hour.
-
Re: what games do you play? GUYS! I MEAN ONLINE GAMES! like tribal wars! travian, blah blah. the online games i've played are in the first psot of this topic. games that are ont online specificly but can be played online: CS 1.6 - a game i play warcraft frozen - battle net. i'm really good but i'm too bored to alsways build the same thing over and over until win win win! gta san andreas - done all missions, killed that cruel police man and his idiot patner :D have played more but those are the main ones.
-
Re: what games do you play? thanks!
-
Re: what games do you play? nice :) i think someone clicked on the link, i got 9 more gold! LOL
-
i've played and i'm still playing some of themthese: www.tribalwars.net - good but crap rules www.runescape.com - good but idiot admins only making low lvl uptades and got bored. gladiatus started playing soon, not the best but you can try it :) or atleast click the link and give me some gold for free :). adventure quest, don't remember adress but i got real high level cos it's bit babiesh... voyage century - good game but alot of work and alot of small bugs :). well i prolly have played others but can;t remember. anyway WHAT DO YOU PLAY? (and click on the gladiatus link to give me some free gold!!)
-
Re: Guess the next poster and may i know how you know it's going to be me when i haven't been active on the fun and games for weeks??? omg!! anyway , true next is lefend-killer.
-
Re: TwIsTeD WiShEs ! since there is no wish to twist, i twist your head soo hard that you don't have one now. i wish that humans were more friendly.
-
Re: Counting (nr game) 1230 bilions
-
Re: 3 Word Game monster wanted them
-
Re: FIRST THOUGH! good
-
Re: THIS OR THAT? car bird or fish?
-
Re: Guess the next poster no, tears next
-
Re: Guess the next poster no way, scarlet next!
-
Re: New game ^ how can i know if the one below is he or she? < i DO NOT!, i repeat I DO NOT like jelly beans... V is a she and is called scarlet.
-
Re: Counting (nr game) 1171
-
Re: 3 Word Game goblins in the
-
Re: TwIsTeD WiShEs ! granted, now you are a 5 yeared old child. i wish that there was no rules.
-
Re: THIS OR THAT? tea - is that the third time you asked this question?? yes or no>?
-
Re: FIRST THOUGH! soup