Welcome to Dream.In.Code
Become a PHP Expert!

Join 137,420 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,970 people online right now. Registration is fast and FREE... Join Now!




php to prompt

 
Reply to this topicStart new topic

php to prompt

linzhiyi
12 Jan, 2008 - 11:52 PM
Post #1

New D.I.C Head
*

Joined: 8 Dec, 2007
Posts: 20


My Contributions
how to use php to prompt if one variable is 0(the variable is initialised by 10 and decreased 1 by 1). worry to wait for answer,thank you.
User is offlineProfile CardPM
+Quote Post

William_Wilson
RE: Php To Prompt
13 Jan, 2008 - 08:14 AM
Post #2

lost in compilation
Group Icon

Joined: 23 Dec, 2005
Posts: 4,013



Thanked: 18 times
Dream Kudos: 3275
Expert In: Java, C, Javascript

My Contributions
i'm not sure I completely understanding the question.

Perhaps this will help:
http://w3schools.com/php/php_looping.asp
It's the w3schools page on loops.
User is online!Profile CardPM
+Quote Post

no2pencil
RE: Php To Prompt
13 Jan, 2008 - 10:45 AM
Post #3

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,550



Thanked: 67 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
QUOTE(linzhiyi @ 13 Jan, 2008 - 12:52 AM) *

how to use php to prompt if one variable is 0(the variable is initialised by 10 and decreased 1 by 1). worry to wait for answer,thank you.


CODE

$i=10;
for($i;$>0;$i--) echo $i."<br>\n";
echo "variable is equal to zero";

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/5/08 04:23AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month