Questions tagged as 'while'

1
answer

Loop Doubt (For) with information coming from the database

What about personal blz? I'm having a big problem running my code. I have a web application made in laravel, which is running local. In this application I need to generate a report that is being done using DOMPDF. The report is incomple...
asked by 29.08.2018 / 16:06
1
answer

Get client id clicked and write to a variable to retrieve in a modal

My PHP code has a while that lists the registered users, from a MYSQL query. This list of users shows photo , id , name and a link to open a modal. Here is the while code: <?php error_reporting(E_ALL ^ E_DEPRECATED); $link...
asked by 25.10.2017 / 07:13
1
answer

Calculate the sine by Taylor series expansion

Write a program that calculates an approximation for the sine according to the equation below: seno(x) = x - x^3/3! + x^5/5! - x^7/7! + ... + x^n/n! Since x and n are integers entered by the user. If n is even the progr...
asked by 22.09.2018 / 00:54
1
answer

What error in this while PHP?

The code below selects all results whose thumbnail of the video has not yet been created and if it was not, it creates a new one, but I'm getting an error that I can not find the solution: $video = BD::conn()->prepare("SELECT * FROM epi...
asked by 06.02.2017 / 15:51
2
answers

Check if file exists at run time [closed]

I need to check if a file has been deleted while running a particular function. At the beginning of the execution, the result of is_file is true , but during execution the file will be deleted and this is the conditional to follo...
asked by 24.09.2018 / 23:00
1
answer

Python Replay Structure [closed]

I need to solve the following equation in Python    N is an integer and positive value. Calculate and show the value of E according to the following formula:       E = 1 + 1/1! + 1/2! + 1/3! + ... + 1 / N! My attempt: n = int(input("Di...
asked by 13.09.2017 / 17:00
1
answer

Solution for while in HTML structure

Does anyone have a simple solution to while looping in PHP for the following HTML structure? I basically want every 3 divs to have a <li> separating them so that the slide can work properly, since every <li> works as...
asked by 24.07.2014 / 21:00
1
answer

Add a value to while in php [closed]

I have the following code: <?php $con = mysqli_connect("localhost","root","","gibellino"); mysqli_set_charset($con,"utf-8"); $result = mysqli_query($con,"select * from index_img"); while($row = mysqli_fetch_array($result)){ $im...
asked by 07.12.2015 / 10:00
1
answer

Result while PHP [closed]

Hello. The while I created is responsible for adding multiple photos, but when the photos are added they end up one underneath the other. Is there a way for photos to side-to-side?     
asked by 27.10.2015 / 18:06
2
answers

fill an Array with data up to a specific value

I need to make a program that reads the keyboard names until the user types the word "end", and then prints the names typed in the order they were typed. So far, I have tried to resolve this issue using ArrayList , like this: public c...
asked by 09.10.2015 / 20:35