Questions tagged as 'while'

1
answer

C ++ Iterator while jumping the reading of cin.getline

I'm starting in C ++, during some tests I noticed that after the second iteration of while the command cin.getline was not read displaying the line after it. I do not understand what happens. Here is the code: #include <iostream> #includ...
asked by 24.06.2017 / 01:33
0
answers

while within while does not work

I'm doing a table in Excel that takes the DB's direct information, my first while I'm getting it normally, the second is not coming, everything appears blank. <?php @ini_set('display_errors', 0); header('Content-type: text/html; cha...
asked by 26.05.2017 / 20:30
3
answers

Does it have to make the user enter the number of rows and columns of a table and this table appears in PHP?

I must create a code that the user can enter the number of rows and columns a table should have, and this table should appear to the user. I try this code here, but the table does not appear with the rows and columns I typed: <?php echo...
asked by 03.05.2017 / 23:44
3
answers

multiply div's repeat loop with divs

I have a list of channel names that are broadcasting a particular game in twitch.tv (api) , so I can get all channels and list them. The question is how to put them in a div To be in blocks horizontally (as in the image) and also...
asked by 27.04.2017 / 19:12
0
answers

Problems with While

I'm developing a page that should pull the content name and the path of the HTML file that contains that content from the database. In the database table there are two columns: title_content and_html_content. This content is not in the database,...
asked by 07.04.2017 / 20:51
1
answer

How to hide table columns if there is no record in the database?

<?php // Pega o id do produto vindo da URL $id_produto = $_GET['produto']; ?> <table width="100%" class="table table-bordered table-inverse table-hover table-responsive text-uppercase" id="tb_dados_produtos"> <tr>...
asked by 13.12.2016 / 18:49
2
answers

How to use "for" and "while" to capture cell tags from multiple tables in an html file?

I have several HTML files that I need to capture the data inside the tables, to launch in the database, but I can not navigate the html tree to find the tags that are cells, the html is this: <div class="details"> <div class="title...
asked by 03.11.2016 / 22:10
1
answer

While inside mail function

I have the following question: I want to cause the results of a While (basically 10 records) to be inserted into the mail function. I do not have the slightest idea how I'll do it, someone can help me. I want each result to be displayed exact...
asked by 08.05.2016 / 17:17
1
answer

problem with existence condition in while python. turtle

I'm having trouble solving an exercise in a programming book. The exercise asks that I create 2 turtles and move them randomly, so that each turtle walks 50 units forward, then turn either to the left or to the right, 90 degrees. Turtles shou...
asked by 20.04.2016 / 05:54
1
answer

Print all images from another table without repeating the title

I have both tables below IMAGES table id_imagens | diretorio_imagem | post_id 1 imagem1.jpg 1 2 imagem2.jpg 1 3 imagem3.jpg 1 4 imagem4.jpg 1...
asked by 23.03.2016 / 00:48