do while...woes


Posted on 16th Feb 2014 07:03 pm by admin

I'm sure this is childsplay but it is stumping me, everytime i try what I think would make this work, the page hangs... what am i doing wrong here??
<?php
$number = 5;
?>
Did you know?Explore Trending and Topic pages for more stories like this.
<?php
while ($number < 10){
$number = $number + 1}
?>
<?php
echo $number
//hoping for it to be 10
?>

before you ask, i'm trying to figure out the principal to make this work, I'm not actually trying to make a number less than 10 become 10, but I need to know how to make this work to do some things. Thanks!!
No comments posted yet

Your Answer:

Login to answer
252 Like 43 Dislike
Previous forums Next forums
Other forums

How to extract/download content from HTTPS page?
Hello to all the Members of this forum, Im Shoiab, A novice programmer in php.. for my first job I h

Am i doing this wrong?
Im pulling from an Oracle database some info... one of which is a field count_pnums which is a NUMBE

help with email script...
hey

I need help with my mail script

when the form on http://www.mcgdesignstudio.com/c

styling a RadioButtonList
HiI need to have a radio button and close to it, its lable, then a space then another set of those.

Update Database
Hi All,


I have a problem with this:

Code: [Select]<?php
session_start();

contact form - output to page and email
I have the following in my controller:

$message['name'] = htmlentities(strip_tags(trim($_POST

Read from forum
Haven't written anything forever and I would like to get back.
What I'm trying to do is getting t

b+ tree
Hi
can every body help me about b+ tree ?(insert & delete)

My query is being run with no results.
I have this.

Code: function DropUser($duser_id, $user_email, $user_username) {

Multiple if statements
Ok so seems basic but for some reason I'm not doing it right. What I want is to be able to have 2 se

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash