Posts by Diego Ananias • 59 points
4 posts
-
5
votes5
answers1513
viewsQ: Skip Record within a while
I wonder how it is that I jump a log inside a while? For example, when the guy is 2 he jumps while($pessoa = mysqli_fetch_object($query)){ if($pessoa->tipo == 2){break;} //continua a exibição de…
-
0
votes0
answers106
viewsQ: How to update a table with multiple fields
Next, I have a form, inside this Form several Input with vectors, example <tr> <td style="vertical-align:middle"> <input type="checkbox" name="Checks[]"…
-
1
votes3
answers1085
viewsA: Calculate difference between two dates - I cannot convert the database date to Datetime
There’s an easier way... $data_inicial = '2013-08-01'; $data_final = '2013-08-16'; $diferenca = strtotime($data_final) - strtotime($data_inicial); //Calcula a diferença em dias $dias =…
-
-1
votes2
answers234
viewsQ: How to show a json with jQuery and PHP?
I did this ajax here, PS: the data reaches the.php data file. $.ajax({ type: 'post', data: $( this ).serialize(), dataType: 'json', url:'simulacao/dados.php', success: function(data){ alert(data);…