A while loop is a control structure used in many languages to loop over a set of instructions as long as a particular condition is met.
1
vote
2answers
19 views
Fetch mysql data using while condition in div
Before i was displaying zones records static although i have records in database table
HTML
<div class="pub_fot_sec_menu pub_fot_list_fst">
<h2><a ...
0
votes
0answers
19 views
PHP separating multiple while loops in sequence
this is my first post here. I spent all of yesterday searching the net for an answer, but I think I've got a fairly unusual application of the while loop here so I didn't have much success.
...
0
votes
0answers
9 views
How to use MATLAB sessions to run multiple While loops together
I have Multiple while loops, each while loop is assiociated with a push button, how can i use sessions in matlab to run each while loop independentely on different cores ?
0
votes
3answers
46 views
PHP for loop inside a while loop
I'm fairly new to PHP and to get a better understanding of it I'm building a small application where I can add movies into watchlists, see upcoming movies, ...
Right now I'm trying to build a top ...
0
votes
2answers
20 views
How to change text of each DIV class indivdually?
I am loading multiple DIV from Database
That my Javascript for click
<script type="text/javascript">
$(document).ready( function() {
var role = 0;
$(".role").click(function(){
...
1
vote
3answers
41 views
While loop statement- differing answers
So given this function as an example.
def spaced_word(s):
i= 0
t = s[i] + ' '
while i < len(s) - 2:
t = t + s[i + 1] + ' '
i = i + 1
t= t + s[len(s) - 1]
...
1
vote
1answer
67 views
Python: How to return a list without modifying the original list using a while loop only?
Say I have a function called everythird that takes a list as its parameter and returns a new list containing every third element of the original list, starting from index 0.
I know how to do this ...
1
vote
2answers
57 views
Code skips the loop even though the condition evaluates to true
I cannot get this portion of my program to enter the while loop. After plugging in values for poly, x_0, and epsilon, the program calculates a value for ans using the function evaluate_poly() which ...
0
votes
2answers
32 views
Client does not refresh the data sent from Server
I have problem with update my serialized objects. Client does not refresh the data sent from Server. I created loop in Client but it still dont update.
public void run(){
try {
...
0
votes
6answers
45 views
Is it possible to insert code between the condition and the body of a while loop?
Is it possible to do something like what is shown in the code below (in any language)?
while(Condition)
// can I do anything here (like initializations) between the condition and the body of the ...
0
votes
3answers
52 views
PHP - How to ELSE a While Statement?
Well, I am making a game website and I have a search bar where the user types the game he wants to find. I have something like this (this is a test, don't need to block sql injection):
<?php
if ...
-1
votes
5answers
53 views
PHP - While / Else error? [closed]
I have the following php code:
<?php
if (!isset($_REQUEST['search'])){
while(($write=mysql_fetch_array($gamesearched)) != null){
echo "Found!";
}else{
echo "No results";
}
...
1
vote
4answers
90 views
simple C program, printf not printing
I'm new here , asking questions at least. Always have been able to find good answers here. Trying to get back into programming and relearning C but ran into weird issue.
#include <stdio.h>
...
2
votes
4answers
89 views
How to decrease CPU Usage when it reaches to 100% when using while(1) loop
I am working on UDP Server/Multiple Client Application.
There are multiple threads handling multiple clients.
There is one single thread which keeps on sending KEEPALIVE Messages to each active ...
0
votes
0answers
29 views
Recurrence Relation In While Loop
I have a Pseudo Code as below:
Do While i<m and j<n ;
a[i,j]=a[i,j]+a[i-1,j-1];
j=j+1;
i=i+1;
How can I write this in Mathematica? Can I use recurrence Relations in loops?