im trying to use the while loop more than one time in a script in php but it is not possible i do not know why, for some reason it will not let me put a variable alone i will have to define the variable inside the state which really suck because im not able to use it more than one time how do i fix this problem thank you.
I've used loops before in other programming languages before(pl/sql, vb) however I never found a practical purpose for them. does anyone have any examples?
Looking at theNewBoston we can leanr how we can productively use the lunch break..I got the feeling that Bucky uses the last few minutes of the lunch break to teach the people of the world all these amazing stuff...gr8 job Bucky..
i've come to realise php is almost identical to expression 2 from wiremod in the game garrys mod.
started watching your tutorials, then realised i know most of it already :D i'll continue watching because there are some differences, but the syntax is nearly identical.
great tut vid mate, was thinking the thing that annoys me about tutorials is often they don't give practical practical use of the things that they teach, please try and incorporate practical uses in other vids thanks!
@artistdigital Because it is text. It only becomes html once it is output to the browser. If you don't use quotes, PHP will read < as code and throw an error.
Lol i think i did something wrong, took ages to refresh the localhost server, then suddenly every possible from1 to god know what number and firefox crashed..
Yea I've made it as well and my firefox crashed! hahahha just because I wanted to try it before I see the tutorial :D :D so I didn't include $num++; :D
Very nice, thanks! Keep up the good work - it's appreciated.
I just started looking into PHP a few hours ago... While watching this I thought of using this on pages redirecting users after doing an action, for instance after submitting data via a form. I need a function to create a one second delay before echoing a new number though (I want the user to see "You'll be redirected in 1... 2... 3" and counting). Which one would that be?
ur better than my lecturer in my college
espsir 3 weeks ago in playlist PHP Programming Tutorials 2
@espsir definitely
gami195 1 day ago
the slash goes in front of the br
jamez1005 1 month ago in playlist PHP Programming Tutorials
The action stops when the counter gets to 6, not 5.
ReallyBigWorld 4 months ago
@ReallyBigWorld no it's stops at 5 .. i tried but now i have some problem ;( :D
GamesForLifes999 3 months ago
im trying to use the while loop more than one time in a script in php but it is not possible i do not know why, for some reason it will not let me put a variable alone i will have to define the variable inside the state which really suck because im not able to use it more than one time how do i fix this problem thank you.
MrPprevalon 4 months ago
alot like c#
GeminiSon 6 months ago
I've used loops before in other programming languages before(pl/sql, vb) however I never found a practical purpose for them. does anyone have any examples?
flaminyon 6 months ago
This a lot like C++
randomname123ish 7 months ago 2
Looking at theNewBoston we can leanr how we can productively use the lunch break..I got the feeling that Bucky uses the last few minutes of the lunch break to teach the people of the world all these amazing stuff...gr8 job Bucky..
icommand 8 months ago
i've come to realise php is almost identical to expression 2 from wiremod in the game garrys mod.
started watching your tutorials, then realised i know most of it already :D i'll continue watching because there are some differences, but the syntax is nearly identical.
nobotious 9 months ago
more thumbs up haha
paulceltics 11 months ago
While
hammadghulam 11 months ago
lol i made an infinite loop and it stops onece you stop the page loading
weswii 11 months ago
Im getting smarter every video of yours!
Thanks!
melsieboytje 1 year ago
كفو يا شنب
للامام ومتابع لك
100%
mt3b33333 1 year ago
great tut vid mate, was thinking the thing that annoys me about tutorials is often they don't give practical practical use of the things that they teach, please try and incorporate practical uses in other vids thanks!
JeLoUs2 1 year ago
you helped me alot.
I can now us php in my php interigated webserver
jeromsavestheworld 1 year ago
loving it
lance182 1 year ago
thanks man, your helping me a lot of your tutorial......
jakasboy134 1 year ago
hey, i'm new to this and was just wondering if u could give any examples of when you would use this function.
And like you know how you used "++" to add 1 each time it loops, is there a way to add 2, or subtract 1, or basically anything you wanted?
cheers
deffolaters 1 year ago
Comment removed
nivekz81 1 year ago
@deffolaters
++ or -- increases or decreases the value by 1.If you want to Increse it by 2 or 3 you can do like this $num+=2 or $num=$num+2
nivekz81 1 year ago
@nivekz81 thank you
GSNTube5 1 year ago
@artistdigital Because it is text. It only becomes html once it is output to the browser. If you don't use quotes, PHP will read < as code and throw an error.
LedilaDesign 1 year ago
Why are you covering the break tag in quotes?? Is it normal for all html tags in php??
I'm programmer in C and find php very easy so far; :)
artistdigital 1 year ago
Thanks mate, Good job
buhle78 1 year ago
i can't believe i had to pay $1100 to learn this.....when i could just learn it here
light0913 1 year ago
Thank you. - behindvfx
mangoprojects 1 year ago
This has been flagged as spam show
Lol i think i did something wrong, took ages to refresh the localhost server, then suddenly every possible from1 to god know what number and firefox crashed..
comedynade 1 year ago
thanks bro.. you did a a great work, i was trying to learn php, but stuck on the while loop. you video is awesome.
luckslave 1 year ago
5/5 but when i want it to print numbers from 001 to 085?
Bartolica94 2 years ago
This comment has received too many negative votes show
we learned loops in fortrane come on we are not that dumb,,, we might be dumb but not that dumb
ncbookz 2 years ago
Dude..I love you Dude..
Video4Training 2 years ago 4
lol i made a mistake and it was going on forever XD!
fudge867 2 years ago
Yea I've made it as well and my firefox crashed! hahahha just because I wanted to try it before I see the tutorial :D :D so I didn't include $num++; :D
r3sp3c791 2 years ago
:D hehe
fudge867 2 years ago
is dot (.) in $num. necessary?
darwinahmad 2 years ago
Yes. The "." is a string concatenator.
hadr0n 2 years ago
i will mark u 5 star!!! good work!!
pinakapogingbata 2 years ago
Easy and Clear tutorial. Thank you very much.
huecitylite 3 years ago 23
nice..... iam geting it
sinthujan 3 years ago
If you need help on how to do a while loop, check out the enclosed instruction book!
gamefreak1000000 3 years ago
Very nice, thanks! Keep up the good work - it's appreciated.
I just started looking into PHP a few hours ago... While watching this I thought of using this on pages redirecting users after doing an action, for instance after submitting data via a form. I need a function to create a one second delay before echoing a new number though (I want the user to see "You'll be redirected in 1... 2... 3" and counting). Which one would that be?
Heindorff 3 years ago
thats html
cdipaolo1996 2 years ago
thx and 5 stars!
CoNiLa2 3 years ago 2
again thx and 5 stars (AS USUAL!) :P
CoNiLa2 3 years ago
thx
sebfck 3 years ago 21
no prob, ill probably add some more php tutorials in a few weeks!
thenewboston 3 years ago 6
*subscribed* :-)
sebfck 3 years ago 2
same
cdipaolo1996 2 years ago
Nice, clear tutorial!
livingroomsong 3 years ago 14